C++ Language/Std/FilesystemAccess/ConsoleIo

The _kbhit() function pauses until console-user presses a key. Then, _inp() reads a byte from the console.

Additional information about interacting with the console