March 23rd, 2013, 02:28 AM
How to use sleep() in devc++?
So I am trying to put this function
sleep(3); so that the printing of phrases would not come simultaneously. The function works when I compile it using cygwin but when I try devc++, it does not work there. When I click compile and run, it just prints them all at one time.
Is there any special headers that I need to use in devc++?
March 23rd, 2013, 03:23 AM
In UNIX/Linux, sleep's argument is the number of seconds. In Windows, it's the number of milliseconds. Having never used cygwin, I do not know under it, but would assume that it's the UNIX/Linux standard. Try sleep(3000).
Comments on this post
March 23rd, 2013, 03:52 AM
Thank you so much!It's working :D
Originally Posted by dwise1_aol