The function clrscr() is not recognised by my C++ compiler. I tried to include the file that defines this function (forgot the name) but it doesn't work. I'm working with MsDev C++ 6.0. Please help!
The function clrscr() is not recognised by my C++ compiler. I tried to include the file that defines this function (forgot the name) but it doesn't work. I'm working with MsDev C++ 6.0. Please help!
This will help you do that:
FillConsoleOutputAttribute()
Other functions you need for working with consoles are listed here:
http://msdn2.microsoft.com/en-us/lib...73(VS.85).aspx
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
FAQ on "How do I clear the screen" (bottom suggestion shows Windows code to clear the console).
FAQ using console functions
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I'd buy a better C++ book. If yours is teaching you about clrscr(), it's probably going to teach you a lot of other non-standard crap. Is this a Turbo C++ book by any chance?