Feb 25, 2012 at 6:00pm UTC
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 UTC
www.cplusplus.com/reference/clibrary/ctime/
Set a timer I suppose when you first ask the user for input.
Feb 25, 2012 at 6:50pm UTC
but how can I do this? =|
Feb 27, 2012 at 4:39pm UTC
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 UTC
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 UTC
Anyway, Thanks for your help =)