hey guyz... i'm new here... i just want to know how i could end my program after a certain amount of time has passed by...
I'm doing a "text twist" program where after 2.30minutes and if the user still has not guessed the correct answer, the program will end... i'm stuck on the timer part because i can't end the program after a certain amount of time....
here's the code i have for the input:
do
{
cout << "Please input your guess here: " ;
cin>> l;
}while(b.check_answer(l));
could i use Sleep() for this part? i just need an point to the right direction 'cause i'm stuck right now.. thanks!:D