delay in a c++ file

This is a discussion on delay in a c++ file within the C++ Programming forums, part of the General Programming Boards category; How do you make a delay in a C++ file. I know how to do it in Pascal but not ...

  1. #1
    Unregistered
    Guest

    delay in a c++ file

    How do you make a delay in a C++ file. I know how to do it in Pascal but not with C.

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    pascal wont help - you need C

    assuming windows programming

    #include <windows.h>

    Sleep(x);

    where x is the number of milliseconds to pause, notice capitalization of Sleep

    hth
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 02:04 PM
  2. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM
  3. file processing updating record error
    By uuser in forum C Programming
    Replies: 2
    Last Post: 04-27-2003, 01:13 AM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 11:12 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21