Iostream.h has never been a standard C header, because it did not make it into the C standard. Instead we got iostream, in 1998. Steer well clear of teaching material using non-standard stuff such as iostream.h or void main. 4 minutes to read +3; In this article. Declares objects that control reading from and writing to the standard streams. This include is often the only header you need to do input and output from a C program. Just not to overlook the obvious, but did you search the directory where you installed Dev-C for 'iostream' to make sure iostream.h and iostream.cpp are there?

Hi!
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? If not please suggest a good compiler in which I can do a program containing the header files mentioned above. I tried doing the same program in turbo C++ and microsoft visual studio 2010 express and it is working properly. If this problem in Dev-C++ is due to any settings that has to be done, please tell. I have installed Dev-C++ correctly.

Someone, please help me out!:confused:

Iostream.h not working in dev c++
  • 5 Contributors
  • forum 13 Replies
  • 2,029 Views
  • 2 Days Discussion Span
  • commentLatest Postby Stefano MtangooLatest Post

Recommended Answers

No wonder you're confused.
[QUOTE=confused_one;]
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? …

Jump to Post

LOL! @WaltP: Pretty good timing for this thread! Don't you think?

Dev

Yet another example of 'I compile this with DevC++ and it doesn't work, but it works with other IDEs like .'.

@OP: I agree with both posters. Stick to one generation of C++ code, that is, the current standard, …

Jump to Post

Iostream.h No Such File Or Directory In Dev C++

All 13 Replies

WaltP2,905

No wonder you're confused.

I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? Presonus studio one 3 professional v3 5.4.

You are using 3 different eras of programming

  • 1980's - conio.h from non-Standard C programming. Suggestion - remove it and all functions used from it.
  • Pre-standard C++ using iostream.h -- again old and substandard. Upgrade to iostream, no extension.
  • namespace std for use with today's standard headers with no extension.

Decide what era you want to compile and fix the code to that standard.

C++ Include Iostream Not Found

confused_one commented: thank you sir for your suggestion+0