I couldn't use "clrscr()" in Microsoft Visual c++ 6.0 why?? I use it successfully in Borland C++ .....
I couldn't use "clrscr()" in Microsoft Visual c++ 6.0 why?? I use it successfully in Borland C++ .....
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.
Perhaps a FAQ
http://faq.cprogramming.com/cgi-bin/...&id=1043284385
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.
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!