So i need to find a way to prompt the user for an answer (cin) while a timer is running. Like if the user doesn't answer in time then... or after a certain period of time passes an event occurs. Please Tell me if i'm being too vague. Thanks

Recommended Answers

All 2 Replies

I imagine you're looking at something multi-threaded or multi-processed and non-portable. What's your background on that?

Lots of good threads out there, including this one.

http://www.daniweb.com/software-development/cpp/threads/105105

I think the technique will depend on the OS, your exact needs, and your experience level.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.