31 lines
676 B
C++
31 lines
676 B
C++
#ifndef TEAMH
|
|
#define TEAMH
|
|
|
|
#include <string>
|
|
|
|
class Team {
|
|
// TODO: Declare private data members - teamName, teamWins, teamLosses
|
|
private:
|
|
std::string teamName;
|
|
int teamWins;
|
|
int teamLosses;
|
|
|
|
public:
|
|
// TODO: Declare mutator functions -
|
|
// SetTeamName(), SetTeamWins(), SetTeamLosses()
|
|
void SetTeamName(std::string name);
|
|
void SetTeamWins(int wins);
|
|
void SetTeamLosses(int losses);
|
|
|
|
// TODO: Declare accessor functions -
|
|
// GetTeamName(), GetTeamWins(), GetTeamLosses()
|
|
std::string GetTeamName();
|
|
int GetTeamWins();
|
|
int GetTeamLosses();
|
|
|
|
// TODO: Declare GetWinPercentage()
|
|
double GetWinPercentage();
|
|
};
|
|
|
|
#endif
|