Menu

Standard C problem with DevC++

2002-08-10
2012-09-26
  • Nobody/Anonymous

    - the statement ClrScr does not run if iw wrote ClrScr();
    - the function Sleep, doesn't works...

     
    • Nobody/Anonymous

      Sleep (uppercase s) is a windows api funtion, not standard c function and it works well if you include <windows.h>.

       
    • Nobody/Anonymous

      sleep not Sleep, sorry...doesn't works
      clrscr() doesn't works...

       
      • Nobody/Anonymous

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.