system("cls");

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jannusuraj
    New Member
    • Mar 2014
    • 1

    system("cls");

    what does system("cls"); do?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    to clear the screen. run cls on your command window you will seee

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Totally non-standard. Uses <conio.h>. I would avoid this.

      Comment

      • johny10151981
        Top Contributor
        • Jan 2010
        • 1059

        #4
        agree with ............... .....

        Comment

        • Luuk
          Recognized Expert Top Contributor
          • Mar 2012
          • 1043

          #5
          It send the command "cls" to the system.
          Some systems might know what to do with it,
          and some will, as stated earlier, clear the screen.

          But if you are on windows, and write a batch-file named "cls.bat" it will do different things based on the contents of that batch-file.....

          Comment

          Working...