Thread: Clearing the screen

  1. #1
    Trick
    Guest

    Question Clearing the screen

    Hi all,
    I am trying to clear the screen. and I am using DEV-C++ compiler. (free).
    I have followed 1.0 CLEARING THE SCREEN: (Credit: robwhit)
    OPTION 1 and I get the message below:

    :\WINDOWS\TEMP\cc9OFxfb.o(.text+0x11e):but.cpp: undefined reference to `clrscr'

    I also tryed:
    system("clear");

    but I get file not found.

    Colud someone please tell me what I am doing Wrong?
    And or how I can do this?

    Thanks

  2. #2
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    try using

    Code:
    system("CLS");
    That will compile.

    Then enter CLS in the dos command prompt...clears the screen, dont it? I think you will understand after that...
    .

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: Clearing the screen

    > I am trying to clear the screen. and I am using DEV-C++ compiler. (free).

    You did read the FAQ before you posted that question, now didn't you?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Please be nice, Hammer... You saw the "Trolls and Flame Wars" thread on GD, didn't you?
    .

  5. #5
    Trick
    Guest

    Talking

    civix,
    Thank you it works.

    Hammer,
    I might have missed what Civix said if it was in the faq but i dont think so. and if you read futher you would see.

    and thanks to all who helped

  6. #6
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Zero problemo, Trick!!

    (I got the thanks this time, Hammer!! BOOYAH!!!)
    .

  7. #7
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    look at the fqa on this site
    C++ Makes you Feel Better

    "Gravity connot be held reponsible for people falling in love"--Albert Einstein

  8. #8
    Registered User Unreg1stered's Avatar
    Join Date
    Jul 2002
    Posts
    25
    The reason it doesn't work when you use system("clear"); because "clear" is used in the unix shell to clear the screen. In Dos environment we use: cls.

    However, how come this bored said I can't view Trick's message because he's in my ignored list??? Weird, isn't it?

  9. #9
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by civix
    Please be nice, Hammer... You saw the "Trolls and Flame Wars" thread on GD, didn't you?
    Yes, I did, thank you. You think I was trolling? You think I was flaming? I think not. The question of clearing the screen is probably one of THE most popular, and has therefore been answered many many times before. A little research by a newbie will bring great rewards, without the need to ask someone else, and will often boost confidence.
    I got the thanks this time, Hammer!! BOOYAH!!!)
    And? Congratulations.
    I might have missed what Civix said if it was in the faq but i dont think so
    So you didn't bump into this when you were looking? Or maybe a board search would have helped you.

    In all seriousness:
    - Trick: good luck with your programming, we look forward to helping you in the future. Just try a little more research on your own before you ask a question that has been asked far too many times before.
    - civix: Lighten up, dude, and learn the difference between a valid response, a troll and a flame.
    how come this bored said I can't view Trick's message because he's in my ignored list
    There was a bug, the board's been upgraded, and this should be fixed now. (For me, all unregistered people were being "ignored" by mistake).
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  10. #10
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    actually, it was more of a lecture.

    and SOOOORY!
    .

  11. #11
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >actually, it was more of a lecture.
    My first post wasn't, it was only one line!

    >and SOOOORY!
    No offence meant or taken...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  12. #12
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    k then, Hammer.
    .

  13. #13
    Registered User GrNxxDaY's Avatar
    Join Date
    Jul 2002
    Posts
    140
    I've been getting that user on ignore list sometimes too... kinda annoying
    AOL: GrNxxDaY
    IDE: Dev-C++ Beta 5 (v4.9.4.1)
    Project: Eye of Sahjz (text-RPG)
    If you think I may need help, please IM me.

  14. #14
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by GrNxxDaY
    I've been getting that user on ignore list sometimes too... kinda annoying
    If you're still getting problems, I'd suggest adding comments to this thread.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. clearing the screen
    By ssharish in forum C Programming
    Replies: 2
    Last Post: 02-01-2005, 09:00 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Clearing the screen
    By Shadow in forum C Programming
    Replies: 4
    Last Post: 05-23-2002, 01:40 PM