23 lines
420 B
C++
23 lines
420 B
C++
//
|
|
// Created by Nik on 09/06/2022.
|
|
//
|
|
|
|
#ifndef PRIRAVA_2_PLAYER_H
|
|
#define PRIRAVA_2_PLAYER_H
|
|
|
|
#include <string>
|
|
|
|
class Player {
|
|
private:
|
|
std::string name;
|
|
int number;
|
|
public:
|
|
Player(std::string name, int number) : name(name), number(number){} ;
|
|
std::string toString(){
|
|
return "Player: " + name + " " + std::to_string(number) + "\n";
|
|
};
|
|
};
|
|
|
|
|
|
#endif //PRIRAVA_2_PLAYER_H
|