All pastes #93117 Raw Edit

Something

public text v1 · immutable
#93117 ·published 2006-07-20 06:08 UTC
rendered paste body
class 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);
  }
}