. Advertisement .
..3..
. Advertisement .
..4..
Offer me the best recommendation on how to press enter to continue c++. The following command is used:
string temp;
cout << "Press Enter to Continue";
cin >> temp;
I used many ways in another forum, but it did not work. Any solution is much appreciated!
The best way to press enter to continue c++ is doing as the following:
Or you can do:
Your program will work well after you execute them.
Try:
Or, even better:
The string input will wait for you to enter real characters and not just a newline.