Is clrscr(); a function in C++?

c++

Question

I've looked everywhere for this function and cannot find the header files to make this work. It says clrscr() undeclared which brings me to the question. Is clrscr(); a function in C++?

1
15
12/6/2013 2:38:34 PM

Accepted Answer

It used to be a function in <conio.h>, in old Borland C compilers.

It's not a C++ standard function.

34
5/30/2009 11:34:12 PM

And before someone posts the usual "please email me the conio.h file" request, can I point out that this ancient Borland header file only contained the declaration of the function. You would also need the supporting Borland library, which will not be compatible with any modern C++ compilation system.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon