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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay console...

Status
Not open for further replies.

UnfitElf

Programmer
Dec 3, 2002
24
NZ
Hi all...

Just to anoy all of you (sorry) but i an using the Borland C++ builder not Microsoft Visual C++...

It prob wont make any difference but ther are a few differences between Borland and Microsoft...

i want to creat a simple delay..

i an writing out to the console and i want it to write out one variable then wait the write out the next ect...

any help???
 
You could try using the [tt]Sleep()[/tt] function (#include <windows.h> in your project). It works with CodeWarrior and Visual C++ but you may need to include the &quot;kernel32.lib&quot;.

Pass in a value in milliseconds, eg:[tt]

::Sleep(3000);[/tt]

will pause for 3 seconds
tellis.gif

[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top