2 things at the same time?
can you make 2 things work at he same time? like makeing something like this:
Code:
main()
{
int min = 0, sec = 0, houre = 0, day = 0;
while (1){
delay(1000);
sec++;
if (sec == 60){sec-=60; min+=1;}
if (min == 60){min-=60; houre+=1;}
if (houre == 24){houre-=24; day+=1;}
gotoxy(25,15); cout << dag << " : " << time << " : " << min << " : " << sec;
if (sec >= 20) {break;}
}
Work while having a question that needs to be answers in under 20 sec? like "whats your name" 20 sec later it scips to next question. is it possible?