First of all.... I can't include 'conio' in my file (nor 'conio.h') and then I can't use 'clrscr()' in my program...
The code is like this
#include<iostream>
#include<conio> \\even 'conio.h' isn't working
main()
{
clrscr();
}
It shows an error like this...
/home/myni/Documents/Codes/CPP/Anjuta/src/main.cc:2:16: fatal error: conio: No such file or directory
And when I remove the 'conio' header file, it shows something like this...
/home/myni/Documents/Codes/CPP/Anjuta/src/main.cc:5:9: error: ‘clrscr’ was not declared in this scope
From Wikipedia:
In short: Your program is not portable to Unix (or in fact, anything but MSDOS or Win32).
So unless you're using an environment that has this (Microsoft compiler), you'll need to find something else to do console manipulation. I recommend
ncursesif you need low-level functions to deal with the console.