Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pause in Turbo C++

Status
Not open for further replies.

Jengo

Programmer
Joined
Apr 17, 2000
Messages
100
Location
US
Does anyone know how you can pause your program for a specified number of seconds in C++. I am using Turbo C++ 4.5 by Borland. It only has a 16 bit complier? Can anyone help me?
 
See if you have delay() or sleep(). They should be what you are looking for. Both should be in dos.h.
James P. Cottingham
 
You could also use time function twice. First, when your program starts and everytime in the empty loop.
The difference between them can be compared to the desire run time, if it equals to it, then continue.

But delay() will do this with no fancies. Best Regards,

aphrodita@mail.krovatka.ru {uiuc rules}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top