![]() |
| ||
| pausing a command 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 |
| ||
| Re: pausing a command linux: sleep() or usleep() #include <unistd.h> windows: Sleep() #include <time.h> |
| ||
| Re: pausing a command 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... |
| ||
| Re: pausing a command |
| ||
| Re: pausing a command ctime.h possibly? |
| ||
| Re: pausing a command that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep... |
| ||
| Re: pausing a command Sleep is a kernel32.dll function. All exports of kernel32.dll are typically associated with windows.h. |
| ||
| Re: pausing a command Quote:
#incldue <windows.h> that cuts the crud a little ;) |
| All times are GMT -4. The time now is 9:30 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC