Compilation error when using conio.h header file in every program - c++4.3.2 c++4.8.2 and c++ 11
conio.h is not defined in gcc compilers. Avoid using this header in your programs while submitting your solution.
if you are using turbo c++ for testing and executing your program then let me tell you conio.h is a non- recommended header file and getche() and clrscr() are non- recommended functions.
For example check the code under c++ option:
don’t use it,it isn’t allowed…
almost all the online judges use gcc compilers which does not support conio.h
conio.h is a non-standard header file and it is not defined for GCC - compilers .
So the answer is that conio.h is not defined in gcc compilers
Y it is not allowed
then what should be the correct answer.
what we use in the place of conio.h
to run- clrscr(),getch().