0

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?

1

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.

2
  • I am used to conio and iostream header files than stdio. Is there any way to add them to gedit ? – user1480 Mar 7 '15 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 '15 at 7:14
0

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

#include<iostream>

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 .