CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    sleep()/delay() URGENT!!!!!

    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(?%

  2. #2
    Join Date
    May 1999
    Posts
    6

    Re: sleep()/delay() URGENT!!!!!

    hi.
    try :
    for (count = 0; count < 10; count ++)
    {
    printf(".\n");
    ::Sleep(2000); // 2000 milliseconds or 2 seconds
    }

    it must work.

    AAvetyan

  3. #3
    Join Date
    Feb 2000
    Posts
    1

    WHAT HEader FILE DO you Need to use the sleep function???

    WHAT HEader FILE DO you Need to use the sleep function???


  4. #4
    Join Date
    Dec 1999
    Location
    Israel
    Posts
    2,851

    Re: WHAT HEader FILE DO you Need to use the sleep function???

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured