Hello All,
I have got a problem using delay function sleep() in Borland C++ 4.5 under Windows XP SP2.
When I try to compile a code (example code below, for example) then I
get an error message:
:Call to undefined function sleep() in function main()
How I could fix it?
Code:/* sleep example */ #include "dos.h" #include <stdio.h> int main(void) { int i; for (i=1; i<5; i++) { printf("Sleeping for %d seconds\n", i); sleep(i); } return 0; }