regarding the compiler

i wrote a program in cpp language and then compiled it.its showing iostream header file or directory does not exist program had no other errors.i even tried with using namespace std and without it too.

are you typing #include <iostream.h> by any chance? If yes, then remove the “.h” part and see.

Also, please give a link to your code so we can derive sufficient information from there.

1 Like

some compilers need you to type


and not

also, try #include"iostream" instead of the angle brackets.
If none of these fix your problem, then there is an issue with your compiler.

Which compiler are you using?

thanks a lot that #include"iostream" worked.