I'm new to C++, trying to learn on my own.
Is there a way to prompt a user to press enter to continue with a program.
For example:
cout << "To continue please hit ENTER."
cin >> ???????????
I know this will be simple to some, just getting started.
This is a discussion on Simple question... within the C++ Programming forums, part of the General Programming Boards category; I'm new to C++, trying to learn on my own. Is there a way to prompt a user to press ...
I'm new to C++, trying to learn on my own.
Is there a way to prompt a user to press enter to continue with a program.
For example:
cout << "To continue please hit ENTER."
cin >> ???????????
I know this will be simple to some, just getting started.
How to I get my program to wait for a keypress?
Just read down to the C++ implementation.
Thanks!
No problem. Since you are just starting out you might want to take a look at the FAQ. It will most likely help you out.