1

how do u pause a command in c++? i know how to pause using system("pause") or cin.get() but i want to know hot to make the program sleep for a certain ammount of time... like vbs' wscript.sleep 1000... if that helps

thanx

5
Contributors
7
Replies
8
Views
13 Years
Discussion Span
Last Post by BountyX
0

I'm really sorry about bringing this up again but the Sleep(); function isnt working for me. i included ctime. could someone give me an example of code for this that works? (I'm using the dev-cpp bloodshed compiler)

thanx...

0

that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep...

0

Sleep is a kernel32.dll function. All exports of kernel32.dll are typically associated with windows.h.

0

that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep...

#define WIN32_LEAN_AND_MEAN
#incldue <windows.h>

that cuts the crud a little ;)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.