Hey, I have a simple question.
My test main:
Everything works, but, when I fill the name in, getline ask for an extra <ENTER>. So when I input "Testname" followed by an enter, it displays a blank line and waits for an <ENTER> again. How can I make sure that it doesn't ask for that <ENTER> ?Code:
cout << "Enter your name: ";
cout << player.getName() << endl;