Thread: which header file for delay

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    69

    which header file for delay

    For delay
    delay()
    what's the syntax and which header file/files do i need for 5 seconds delay.
    it doesn't seem to work
    Last edited by knight543; 01-11-2002 at 07:31 PM.

  2. #2
    Unregistered
    Guest
    dos.h

    Syntax as far as I know is
    delay(long);

  3. #3
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    yeah, dos.h is the one

    the syntax for 5 sec delay is
    delay(5000);


    you could also use the sleep command also in dos.h
    the syntax id
    sleep(5);

  4. #4
    In The Light
    Join Date
    Oct 2001
    Posts
    598

    Linux?

    howdy,
    i don't have <dos.h> in my g++ lib. and when i move it from borland g++ it won't work. is there a *nix comparable file or function?

    M.R.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Replies: 6
    Last Post: 04-02-2002, 05:46 AM