Thread: cls

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    147

    cls

    Er......in DOS prompt, there is a command called 'cls' to clear the screen. How do I write this in code? Is there a special keyword or function provided for this purpose?
    Only by the cross are you saved...

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    clearscreen is explained in the FAQ.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    147
    er......the FAQ section of wat?
    Only by the cross are you saved...

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    67
    Code:
    #include <stdlib.h>
    
    int main()
    {
           system("cls");
           return 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. cls() vs system("cls")
    By swgh in forum C++ Programming
    Replies: 6
    Last Post: 10-26-2006, 03:13 PM
  3. Replies: 15
    Last Post: 05-13-2006, 09:28 PM
  4. BASIC's CLS equivalent in C#
    By sean in forum C# Programming
    Replies: 4
    Last Post: 07-24-2004, 09:44 PM
  5. cls in C
    By Shogun in forum C Programming
    Replies: 6
    Last Post: 04-04-2003, 07:03 AM