Hi! This is my first post, so be gentle.. :D
I am learning CPP with a book called "Beginning C++ Game Programming", and I have run into a problem.
The book asks me to make a program were the user can enter his/hers favorite games, delete a game, and print the list.
I am using vectors and iterations, and I cant seem to get the run-time error I am getting.
The error window says: "Expression: (this->_Has_containter()",0)
Here's my code:
if(command == "2")
{
string deleteGame;
cout << "Enter name of game: " << endl;
cin >> deleteGame;
for(iter = gameList.begin(); iter != gameList.end(); ++iter)
if(*iter==deleteGame)
gameList.erase(iter);
}