Thread: pause or delay

  1. #1
    Registered User
    Join Date
    Apr 2002

    pause or delay

    I created a menu of sorts, and stored it in a char array. And i want to display the menu so it's delayed, meaning that the first line displays, then like a second or two later, the next displays. And so on till it's done. I tried a nested for loop, the outer loop being the counter that displays the array element, and the inner being a for loop that went to like 10000, to try and get a delay like that, but it turned out choppy and all around ****ty. So any help would be appreciated.

  2. #2
    Seņor Member
    Join Date
    Jan 2002

    I'm not sure which header it's in. Maybe stdlib.h, stdio.h, or windows.h. I think it's windows.h.

    for example: Sleep(1000); would be a 1 second pause.

  3. #3
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Yep its in windows.h

  4. #4
    Seņor Member
    Join Date
    Jan 2002
    Oh yeah remember that Sleep has a capital S.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Regarding delay in the connection
    By byatin in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-19-2008, 02:59 PM
  2. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  3. Networking (queuing delay, avg packet loss)
    By spoon_ in forum A Brief History of
    Replies: 0
    Last Post: 09-05-2005, 11:23 AM
  4. 2-3 Second delay with alarm()
    By Longie in forum C Programming
    Replies: 11
    Last Post: 06-20-2004, 08:46 PM
  5. Delay
    By CanadianOutlaw in forum C++ Programming
    Replies: 4
    Last Post: 09-13-2001, 06:28 AM