Real Time

I created a program that displays simple mathematical questions. (Ex. 1+1=?)
Now, I want to make it real time. As for example, each question must be answered for five seconds only. Otherwise, the program will proceed to the next question.
Is there any way to do this?
Do you mean in console programming?

Then I say don't bother, you'll end up just creating a "hackish" code thats not worth it. What you are look at is event based programming (e.g. listening for multiple events). Console programming was just made for getting familiar with the syntax, its not for event listening.
Console programming was just made for getting familiar with the syntax

I'm a little bit disappointed in console programming, but thanks for saying the truth.
Well, you can do all sorts of stuff with the console with ncurses, including (ascii) video and games.
The question is if you really want to.
Topic archived. No new replies allowed.