Jan 23, 2010 at 2:13am UTC
It's not defined in C either.
Are you trying to call sleep(), which I believe is a UNIX function, or Sleep(), which is a Windows API function?
Jan 23, 2010 at 2:18am UTC
I wan't my output to be delayed by half a second. I used to be able to do this in C using the sleep() function
Jan 23, 2010 at 2:37am UTC
I insist: sleep() is not, and has never been, a standard C function.
Jan 23, 2010 at 2:47am UTC
use #include <windows.h>
note S in sleep is in upper case
Last edited on Jan 23, 2010 at 2:47am UTC
Jan 23, 2010 at 3:06am UTC
@ blackcoder41: Thank you it works now.
@ Helios: must have been my previous compiler's preset headers then