Correct me if I'm wrong, shouldn't this code pause for user input at cin.getline()? Seems like it's skipping for me.
cout<<"Please Enter your name: ";
cout<<Name<<", is this correct?\n";
Yes, but perhaps there is a newline left in the input buffer, so the cin.getline consumes that line.
If this is true, how would I remedy this?
Originally Posted by laserlight
"flush(cout)" flushes the output buffer!
Originally Posted by überfuzz
The only way to "flush" standard input is:
Thanks, got it working now!
>> char Name;
>> cout<<"Please Enter your name: ";
std::cout << "Please Enter your name: ";