fork download
  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3. #include <string>
  4. using namespace std;
  5.  
  6. class Player
  7. {
  8. private:
  9. string name;
  10. string phone;
  11. string playerPos;
  12. int older;
  13. int teamNr;
  14. public:
  15. Player(string name, string phone, string playerPos, int older, int teamNr);
  16. Player();
  17. int getOlder()const;
  18. int getTeamNr()const;
  19. string getName()const;
  20. string getPhone()const;
  21. string getPlayerPos()const;
  22. void setOlder(int older);
  23. void setTeamNr(int teamNr);
  24. void setName(string name);
  25. void setPhone(string phone);
  26. void setPlayerPos(string playerPos);
  27. string toString()const;
  28. bool operator==(const Player &compObj);
  29. bool operator!=(const Player &compObj);
  30. ~Player();
  31. };
  32.  
  33. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty