how to do sleep or delay in mac Xcode 4.3.3
i am trying t do a delay for 60 seconds.
how do i do the sleep or delay command?
this is what i have:
1 2 3 4 5 6 7 8
|
int a = 61;
{cout<< "to many tries, please wait 1 minute \n";
while (a > 0) {
sleep(1);
a--;
cout<<"time left:"<<a;
};
|
it doesn't come back wrong but it doesn't print the numbers going down it just ends.
Topic archived. No new replies allowed.