I am learning MFC but only use the command promt at the moment to run my C++
programs.
My problem is that i cant use clrscr() even if i include %26lt;conio.h%26gt;.
I get this error:
****
error C2065: 'clrscr' : undeclared identifier
****
Can anyone help?
About C++..Pls Help Me?
These functions are from non-standard Turbo C run-time library and they will be only available if you program inside old Turbo C IDE. VC++ on the other hand is only for Win32 applications: console and API. So, in short - it will not work there. The alternative is Win32 functions for console I/O - they will work, they just not as transparent as Borland was... needs a little more understanding and coding. I heard someone made a library called ECONIO. Try searching for the same
Reply:Unfortunately, conio.h isn't a standard -- clrscr() exists in Borland compilers but not in MS compilers. A suggestion elsewhere is to use system("cls"), though that isn't as satisfying
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment