Clear Screen Function CLRSCR Help

This is a discussion on Clear Screen Function CLRSCR Help within the C++ Programming forums, part of the General Programming Boards category; Hi me again for some reason clrscr isnt working in my C++ progs to clear my screen, this used to ...

  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
    zen
    zen is offline
    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,831
    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, 09:18 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07: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, 10:25 PM
  5. Replies: 5
    Last Post: 02-08-2003, 07:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21