Sleep, sleep, ClrScr, clrscr - none of these is standard c function. Howecer, there is function _sleep in stdlib.h (said to be obsolete) what shouldn't be there in accordance with ansi c. And there is ansi function system what may be used to call dos command cls like that: system ("cls"), this is the most standard way to clear screen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
- the statement ClrScr does not run if iw wrote ClrScr();
- the function Sleep, doesn't works...
Sleep (uppercase s) is a windows api funtion, not standard c function and it works well if you include <windows.h>.
sleep not Sleep, sorry...doesn't works
clrscr() doesn't works...
Sleep, sleep, ClrScr, clrscr - none of these is standard c function. Howecer, there is function _sleep in stdlib.h (said to be obsolete) what shouldn't be there in accordance with ansi c. And there is ansi function system what may be used to call dos command cls like that: system ("cls"), this is the most standard way to clear screen.