clrscr was not declared in this scope

Sep 7, 2012 at 7:26pm
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 Sep 7, 2012 at 7:27pm
Sep 7, 2012 at 7:29pm
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 Sep 7, 2012 at 7:29pm
Sep 7, 2012 at 7:38pm
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.