How to check when the user presses a key...

Ok, part of my console program gets the user to press enter to continue after reading the introduction of how to use the program.

I've halted the program using the code below:
1
2
cout << "Please press ENTER to continue.";
cin.get();


But when in the console I can still enter letters or whatever when I type on the keyboard. Is there anyway I can stop the user from entering anything but pressing the enter key?

Thanks, SoftMount.
Last edited on
Topic archived. No new replies allowed.