clrscr()

This is a discussion on clrscr() within the C Programming forums, part of the General Programming Boards category; I couldn't use "clrscr()" in Microsoft Visual c++ 6.0 why?? I use it successfully in Borland C++ ........

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    44

    clrscr()

    I couldn't use "clrscr()" in Microsoft Visual c++ 6.0 why?? I use it successfully in Borland C++ .....

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Because a bunch of pin heads decided that conio.h was not device independent enough, so that file has been deprecated, and isn't part of MS Visual 6.

    You can use the Windows API to do the same job, however. They capitalize the first letter and oh, what's the name? Clrscr() I believe.

    If you can't find it in your help section, post back and I'll look it up.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,418
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    There is a one word API command in Windows that does this, as well. It's like the old conio.h goto(x, y). You can't use that any more, (BAD function, BAD), but they have Goto(x, y), in the API, instead.

    That's *so* much better!!

    Oh good grief!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. do i need a lib for clrscr()?
    By FingerPrint in forum C++ Programming
    Replies: 2
    Last Post: 08-02-2006, 12:51 PM
  2. clrscr() in microsoft visual c++
    By canliceset in forum C++ Programming
    Replies: 7
    Last Post: 11-18-2004, 01:40 AM
  3. could anyone help me?
    By yahootew3000 in forum C Programming
    Replies: 13
    Last Post: 10-03-2004, 01:17 AM
  4. clrscr(); not clearing the screen
    By Noobie in forum C Programming
    Replies: 8
    Last Post: 05-01-2003, 01:44 PM
  5. clrscr() blues...
    By CodeMonkey in forum Windows Programming
    Replies: 1
    Last Post: 01-17-2002, 02:20 PM

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