How to simulate “Press any key to continue?”

On Windows:

system("pause");

and on Mac and Linux:

system("read");

will output “Press any key to continue…” and obviously, wait for any key to be pressed.
I hope thats what you meant

Leave a Comment