How in c ++ to create keyboard input waits for k seconds? sleep can't do it? Example condition: "A line is output with two randomly generated numbers a and b, the program waits for 5 seconds. The answer (number c) is the product of these numbers. If the time has passed, output time has passed, otherwise output 0 or 1 according to the correctness of the expression a * b == c ".
- Possible duplicate question: Function to get keystrokes on the keyboard - nick_n_a
- oneIn PeekConsoleInput specify the time. - nick_n_a February
|