1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
|
* CTeam.h
*
* Created on: 21.10.2017
* Author: Medion
*/
#ifndef CTEAM_H_
#define CTEAM_H_
#include<iostream>
using namespace std;
#include<string>
class CTeam{
private:
string m_teamName;
unsigned int m_winsTotal=0;
unsigned int m_lostTotal =0;
unsigned int m_equalTotal= 0;
unsigned int m_goalsScoredTotal = 0;
unsigned int m_goalsReceivedTotal=0;
public:
CTeam(string name = "NoName");
string getName();
void addResult(unsigned int goalsScored,unsigned int goalsReceived);
unsigned int const getTotalPoints();
friend ostream& operator <<(ostream& out,CTeam const& rop){
out << "Bayern Muenchen" << " " << ":" << rop.addResult << rop.1*m_equalTotal << " " << "Tore"<<rop.goalsScored<<":"<<rop.goalsReceived << endl;
return out;
}
bool operator< (const CTeam& rop);
};
#endif /* CTEAM_H_ */ |