1234567891011121314
while ( 1 ) { cout << "\nEnter a command: "; cin >> command; ... // add a game else if ( command == "add" ) { string newgame; cout << "Enter the game to add: "; getline( cin, newgame ); games.push_back( newgame ); } }