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;