waiting for input

Feb 25, 2012 at 6:00pm
Hello out there!

I'd really like to know how to say a program that it should output something if the user hasn't typed something for a certain time.

Thanks in advance,
FlashDrive
Feb 25, 2012 at 6:08pm
www.cplusplus.com/reference/clibrary/ctime/

Set a timer I suppose when you first ask the user for input.
Feb 25, 2012 at 6:12pm
thanks a lot =)
Feb 25, 2012 at 6:50pm
but how can I do this? =|
Feb 27, 2012 at 4:39pm
This will be fairly difficult as you will have to use threads. I would help you, but I'm not so advanced myself, and I have not dove in to the world of multithread programming.
Feb 27, 2012 at 7:24pm
Since standard C++ does not know anything about threads, events etc you cannot really do it. You need some library to help you for this.

What library do you use, since the solution depends on this.
Feb 27, 2012 at 8:20pm
Anyway, Thanks for your help =)
Topic archived. No new replies allowed.