0

How to make C++ output a string and you have to input it exactly as it is before a timer counts down?

For example, you are directed to type in the 3 strings within 5 seconds. If you don't type it within the time, you are given a new set of strings, and so on and so forth. However, if you do manage to type in within the time, but there is an error, the timer gets deducted 3 seconds. This idea was based on a feature of the game "Welcome to the Game 2". My main questions are: How to make a program randomly choose between choices of output? How to make a program make a timer that deletes itself and counts down?

26th Nov 2018, 11:43 AM
Shaan Graal Cariño Dayag
Shaan Graal Cariño Dayag - avatar
1 Respuesta
+ 1
I think you have to look into the multi-threading to make timers.
27th Nov 2018, 10:36 AM
Mrproex FR
Mrproex FR - avatar