waiting for input

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
www.cplusplus.com/reference/clibrary/ctime/

Set a timer I suppose when you first ask the user for input.
thanks a lot =)
but how can I do this? =|
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.
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.
Anyway, Thanks for your help =)
Topic archived. No new replies allowed.