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?
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,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.