conio.h header file error

Compilation error when using conio.h header file in every program - c++4.3.2 c++4.8.2 and c++ 11

1 Like

conio.h is not defined in gcc compilers. Avoid using this header in your programs while submitting your solution.

1 Like

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:

http://ideone.com/samples

don’t use it,it isn’t allowed…

almost all the online judges use gcc compilers which does not support conio.h :slight_smile:

1 Like

So the answer is that conio.h is not defined in gcc compilers

1 Like

Thank you!

Thank you!

1 Like

Thank you!

Y it is not allowed

conio.h is a non-standard header file and it is not defined for GCC - compilers .