
please wait
|
|
getline(cin, userInput)
I think that is the proper method of doing that, just look up getline and it will tell you the paramaters, it allows you to get the entire line, so if the user inputs a sentence or multiple words, such as street fighter 4 then it takes in the entire sentence instead of the first word as cin does. I tried to do bow and arrow for a game that I had, and later when i tried to call that variable, the program freaked out on me because i didn't use the getline for it, so i'm guessing it's a good habit to get into using that.
games.insert(games.end(), "User input here");