clrscr error

I am using Visual c++ 2010 express.I am trying to solve this error:
'clrscr': identifier not found
I am getting the same error when using "gotoxy"


If someone knows which library to use,please share with me!


I also want to make c++ help to work without connecting to internet(by help i mean the description of all the function).If someone could provide me with a download link i would be very grateful!
Last edited on
Those functions are not part of the C++ standard; I am not familiar with Visual Studio but I don't think it provides them. You will have to use the functions it does provide, or find another library you can download and use.

http://weseetips.com/2009/03/01/gotoxy-function-in-visual-c/
what version of c++ you would recommend for learning purposes?
Last edited on
C++ 2003. It's the latest one that has been formalised. I understand it is very well supported by Visual Studio 2010, so you're all set.
gotoxy and clrscr were available in the ancient Turbo C++ (good for it's time...). Might still be available in Borland/Embarcadero C++?

There is no general C++ way to solve the problem; if you need the functionality you'll require either platform specific solution or a console library (e.g. CURSES).

The Windows console API is not the friendliest API, but Microsoft Support do provide a code snippet:
How To Performing Clear Screen (CLS) in a Console Application
http://support.microsoft.com/kb/99261

(the system("cls") is NOT the solution to use!)

And this CodeProject.com article implements something which looks suspiciously like a Turbo C++ console...

Andy
mmmm...i wonder when will they stop teaching ancient programming at school!It's getting frustrating!
Anyway thanks to you all for your time!
A good night!
Last edited on
Topic archived. No new replies allowed.