I have a lot of sleep(1) function calls in my program.
sleep(unsigned int) is obsolete, according to the Borland C++ compiler. It gives me the following warning:
Warning W8053 ar1.cpp 26: 'sleep(unsigned int)' is obsolete in function main()
So, OK, it's just a warning, so I keep using sleep(). But now I have too many of these function calls, and I get this message after all the warnings:
Error E2228 ar1.cpp 357: Too many error or warning messages in function DE()
(DE is the last function out of about 6 so far, but later it'll be about 40-50 functions.)
So now it won't compile due to the error of having too many warnings.
Is there a newer function I can use to pause the program for a certain amount of seconds?
Thanks,
Michael
sleep(unsigned int) is obsolete, according to the Borland C++ compiler. It gives me the following warning:
Warning W8053 ar1.cpp 26: 'sleep(unsigned int)' is obsolete in function main()
So, OK, it's just a warning, so I keep using sleep(). But now I have too many of these function calls, and I get this message after all the warnings:
Error E2228 ar1.cpp 357: Too many error or warning messages in function DE()
(DE is the last function out of about 6 so far, but later it'll be about 40-50 functions.)
So now it won't compile due to the error of having too many warnings.
Is there a newer function I can use to pause the program for a certain amount of seconds?
Thanks,
Michael