Answers for "C++ press enter to continue function"

C++
0

C++ press enter to continue function

// cin.ignore(); /* Will empty the buffer,
					used if user input is requested prior to use of cin.get(). */
    cout << "\nPress ENTER to continue...";
    cin.get(); // Waits for user input in order for the program to move forward.
Posted by: Guest on March-19-2022

Browse Popular Code Answers by Language