Pauseing Screen

How could I get a program to wait for three seconds and if in that time the user puts in an input then the program ends but if they do not the program starts over, is this possible?
http://www.cplusplus.com/forum/beginner/99196/
if that doesn't work, a really really really really long loop would work! :)

edit: Don't actually make a really long loop, spare your PC the trouble :)
Last edited on
Oops I forgot to mention that I am using wxwidgets and I need to see if the user presses one of the buttons in the program
Topic archived. No new replies allowed.