mattholomew
Programmer
The Sleep(function), defined in dos.h, is not being recognized by my compiler(Borland C++ 4.5, and I have NO IDEA WHY. Everytime I run it, it says, 'compiler error: 'sleep()' function not defined in prog5_2.' (I am doing the Windows Game Programming for Dummies, in case anyone cares.) In this book, the author has forgotten header files before, and he forgot dos.h, so I put it in when it didn't work without it, and it still doesn't work. I might try going into dos.h and hacking out the definition myself. (When the going gets tough, the tough try a hacksaw and blowtorch.) However, I have already tried this and failed the first time, and additionally, those things are so cryptic it gave me a major headache. This is the non-functioning section of code in my program...
Sleep(10) ;
The way to use the sleep function, so happily provided by the help contents, is: void sleep (unsigned seconds) ;
I decided to try this before the hotline. If anyone could help, I would appreciate it.
Sleep(10) ;
The way to use the sleep function, so happily provided by the help contents, is: void sleep (unsigned seconds) ;
I decided to try this before the hotline. If anyone could help, I would appreciate it.