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!
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.
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...
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!