Hi I wanted to have my program behave in the following way:
"Please press enter when you are ready."
and then it would wait until you've pressed enter. But I've found no way of just reading a carriage return. I've hacked my around it by making the program expect something like an int i.e.
int x = 0;
cin >> x;
Forcing the user to hit an arbitary number on the keypad and then press Enter.
I've read up on getline() and cin.ignore() but I don't think those are what I'm looking for.
Any help would be really appreciated. thanks!



LinkBack URL
About LinkBacks



