I am writing a small games program, console not Windows application, that requires the user to enter an integer within 10 seconds. If none is entered the system takes a different course of action. How can I code this, that is, say:
int x;
cin >> x; //within 10 seconds
I would be very grateful for all help.
int x;
cin >> x; //within 10 seconds
I would be very grateful for all help.