i want to make a program of timed quiz (just like KBC).
I want to make a timer in this program.
Working of program
program will ask a question from the user and will show 4 options and will wait for user to enter a option, if user is not able to answer or is not providing any input then in 30 seconds program will display a message of 'gameover'.
So how to introduce this timer in a C++ program?
Please give me the codding of this timer (only need coding of timer).
I want to make a timer in this program.
Working of program
program will ask a question from the user and will show 4 options and will wait for user to enter a option, if user is not able to answer or is not providing any input then in 30 seconds program will display a message of 'gameover'.
So how to introduce this timer in a C++ program?
Please give me the codding of this timer (only need coding of timer).