Is there any way to get input from user in c++ such that I get input when he presses any key, if he did not press any key then program should proceed.
When we use getch(), then program waits for user to press something and then it proceeds but I want a method such that program will rum but when user presses a key it should respond to it.
I tried ReadConsoleInput(...); but it does not work, it still waits for Input.

Thanks.