Im trying to allow the user to type in a name that can have spaces like "First Last". When I use getline, it requires the user to hit return twice. For example, he/she types in the name and hits return to enter it, then has to hit it again, I have no idea why. Is there anyway to make it so that the user can just hit return once?
cout << "Please enter a name for your character: ";
I've tried simply
but it messes up the entire program afterwards...
cin >> charactername;
It's a bug in the compiler. You can fix it easily, but unfortunately the MSDN description doesn't tell you what file has the errror in it. I found it in:
C:\Program Files\C++Microsoft Visual Studio\VC98\Include\String