Something
public text v1 · immutableclass Player
{
string name;
string weapon;
public:
Player();
}
Player::Player()
{
cout<<"What is your name?";
getline(cin,name);
cout<<"What is your weapon?";
getline(cin,weapon);
}
class Game
{
vector<Player> game_players;
public:
Game();
}
Game::Game()
{
cout<<"How many players do you want?";
int input;
cin>>input;
for(int i = 0; i < input; i++)
{
Player new_player;
cout<<"Insert info for player "<<i+1<<endl;
game_players.push_back(new_player);
}
}