Topic: clear screen


Author: sgolodetz@dial.pipex.com ("Stuart Golodetz")
Date: Sun, 25 May 2003 14:28:31 +0000 (UTC)
Raw View
===================================== MODERATOR'S COMMENT:

I'm approving this because it's a response to something that was
already approved and posted, but it really isn't on-topic for
this group.


===================================== END OF MODERATOR'S COMMENT
"Max Coppin" <maxcoppin@btinternet.com> wrote in message
news:strya.2764$9A3.899@newsfep1-gui.server.ntli.net...
> Can someone please tell me a way of clearing the screen in VC++ clrscr()
> does not appear to exist as it does in borland and I'd rather not use the
> dos CLRSCR command if possible

Well I'd rather not use "CLRSCR" either, seeing as ITYM "CLS". And honestly,
it's the easiest way:

system("cls");

It's not portable, but there isn't a portable way to do it (as you'd know if
you'd read the FAQ). You could probably also write it in a different (and
equally non-portable) way, but why would you want to?

HTH,

Stuart.

P.S. Next time, you're better off posting in one of the VC++ newsgroups.
This isn't a question about the C or C++ languages, so it doesn't belong
here.


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]