I am unable to use iostream.h and conio.h in gedit as it states that these files are not found. what should i do?

2 Answers 2


conio.h is for MS-DOS compilers only and is not part of the C Standard Library. iostream.h is C++ and CS50 is using C.

Why do you need these headers? You probably just want to use stdio.h for any input/output tasks.

  • I am used to conio and iostream header files than stdio. Is there any way to add them to gedit ? Mar 7, 2015 at 4:01
  • The appliance has a C compiler and is Linux based. It's not gedit that is the problem. If you are doing CS50, you need to use the a C99 standard compiler.
    – curiouskiwi
    Mar 7, 2015 at 7:14

If you are writing your code in C++, use


Exclude the '.h' . Also, as curiouswiki said, conio.h is for MS-DOS compilers only.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .