diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog2/Prakt3/Aufg1/Team.h | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Prog2/Prakt3/Aufg1/Team.h')
| -rw-r--r-- | Bachelor/Prog2/Prakt3/Aufg1/Team.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Prakt3/Aufg1/Team.h b/Bachelor/Prog2/Prakt3/Aufg1/Team.h new file mode 100644 index 0000000..89d759d --- /dev/null +++ b/Bachelor/Prog2/Prakt3/Aufg1/Team.h @@ -0,0 +1,39 @@ +#ifndef _TABLETENNIS_H_
+#define _TABLETENNIS_H_
+
+#include <string>
+#include <iostream>
+
+using std::string;
+using std::istream;
+
+class Team
+{
+public:
+ Team();
+ virtual ~Team();
+ void setTeamName(const string&);
+ const string& getTeamName() const;
+ void setmatchesPlayed(int);
+ const int getmatchesPlayed() const;
+ void setgamesWon(int);
+ const int getgamesWon() const;
+ void setgamesLost(int);
+ const int getgamesLost() const;
+ void setpointsWon(int);
+ const int getpointsWon() const;
+ void setpointsLost(int);
+ const int getpointsLost() const;
+ istream& read(istream&);
+ const Team& operator=(const Team&);
+ bool operator<(const Team&);
+private:
+ string teamName;
+ int matchesPlayed;
+ int gamesWon;
+ int gamesLost;
+ int pointsWon;
+ int pointsLost;
+};
+
+#endif //_TABLETENNIS_H_
|
