Thread: Clear Screen Function CLRSCR Help

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    34

    Clear Screen Function CLRSCR Help

    Hi me again

    for some reason clrscr isnt working in my C++ progs to clear my screen, this used to work in C

    im using string.h stdlib.h and iostream.h header files

    am i wrong in assuming that works for C++? ive checked in the help but it doesnt recognise the function

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Check the FAQ.
    zen

  3. #3
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    #include<stdlib.h>

    system("cls");

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You can then check this part of the FAQ http://www.cprogramming.com/boardfaq.html#execs to find out why system() is best avoided.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Clear Screen Function?
    By Punkture in forum C Programming
    Replies: 3
    Last Post: 05-05-2003, 09:25 PM
  5. Replies: 5
    Last Post: 02-08-2003, 07:42 PM