Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #ifndef SPIELER_H
  2. #define SPIELER_H
  3.  
  4. #include<iostream>
  5. #include<string>
  6. #include<vector>
  7. #include "Mannschaft.h"
  8. #include "Spieler.h"
  9.  
  10. using namespace std;
  11.  
  12.   enum class Position{Tor, Abwehr, Mitte, Sturm};
  13.  
  14. class Spieler {
  15.  
  16.   private:  
  17.     string name;
  18.     int transSum;
  19.     Position position;
  20.     int n{0};
  21.  
  22.   public:
  23.     Spieler(string, int, Position = Position::Tor);
  24.     string getName();
  25.     bool operator==(const Spieler&) const;
  26.     ostream& print(ostream& o) const;
  27.    
  28. };
  29.     ostream& operator<< (ostream& o, const Spieler& s);
  30.    
  31.  
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement