Click to See Complete Forum and Search --> : sleep()/delay() URGENT!!!!!


chongwei
April 18th, 1999, 09:36 AM
i need a very simple example/program to show mi how to make the dots to appear one by one with a time interval of 2 seconds. Please kindly help mi. Thanks alot!!!!!!!!

for(count=0;count<10;count++)
{
printf(".\n");
sleep(?%

Art
April 19th, 1999, 06:27 AM
hi.
try :
for (count = 0; count < 10; count ++)
{
printf(".\n");
::Sleep(2000); // 2000 milliseconds or 2 seconds
}

it must work.

AAvetyan

II Tonic ll
February 18th, 2000, 08:44 AM
WHAT HEader FILE DO you Need to use the sleep function???

DanielK
February 18th, 2000, 08:48 AM
windows.h

---===---
I'm not here for the rates, but rating a post is a good way for me to know how much i helped. Private messages will do also.
---===---
Daniel