clrscr was not declared in this scope

Hi,

I am using code::blocks compiler, the command

clrscr();

is giving error below error
"clrscr was not declared in this scope"

Kindly help to resolve this issue.

thanks and regards
Murugesan
Last edited on
You should include the header where this function is declared. It is not a standard function and can be absent in your compiler implementation.
Last edited on
You need to #include <conio.h> for the proper compiler -- which is not the GCC if you are using the C::B defaults.

See http://www.cplusplus.com/articles/4z18T05o/ for more about how to clear the terminal display.
Topic archived. No new replies allowed.