Results 1 to 7 of 7

Thread: Clearing the screen in visual c++

  1. #1

    Thread Starter
    Lively Member jk9694's Avatar
    Join Date
    Dec 2001
    Posts
    78

    Clearing the screen in visual c++

    ok, im using visual C++, i know there is no header to clear the screen how might i do this????

    I am not using any windows, just the basic C++ programs

    Have a great day!!

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Code:
    #include <cstdlib>
    
    void somecode() {
        std::system("cls");
    }
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    DaoK
    Guest
    I think you can use clrscr() of conio.h

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I thought conio was a Borland thing and didn't work in MSVC?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    DaoK
    Guest
    oops sorry

  6. #6
    DaoK
    Guest
    I just did a test and conio.h work on MSVC.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    conio yes, but not clrscr
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width