Code:int main()
{
char list[100];
char list1[100];
vector<string> gList;
vector<string>::iterator game;
vector<string>::const_iterator myGame;
cout << "Please insert a game you would like to add: ";
cin.getline(list, 100);
gList.push_back(list);
cout << "Please insert another game: ";
cin.getline(list1, 100);
gList.push_back(list1);
cout << "you got " << gList.size() << " games.";
for(game = gList.begin(); game != gList.end(); ++game)
cout << "\nAnd they are: " << *game;
getch();
system("cls");
char choice[100];
cout << "Would you like to remove " << list << " or " << list1 << "?";
cin.getline(choice, 100);
if(choice == list)
{
gList.erase((gList.begin(), +0));
}
else if(choice == list1)
{
const string* str_int = gList; //I want to make this part an int,
gList.erase((gList.begin(), +1)); //but how do I do that?.
}
cout << "You now got " << gList.size() << " game left.";
for(myGame = gList.begin(); myGame != gList.end(); --myGame)
cout << "\nAnd it is " << *myGame;
getch();
return 0;
}

