Why the "Dev C++" couldn't support with iostream.h header file in C++..? How can I include iostream.h header file in Dev C++?
Asked
Active
Viewed 6.4k times
1
-
`iostream.h` isn't a standard C++ header. – Rapptz Jul 19 '13 at 05:32
-
1If you are using a compiler that is not pre-historic, then you need to `#include
`, which is a standard C++ header. – juanchopanza Jul 19 '13 at 05:32 -
http://members.gamedev.net/sicrane/articles/iostream.html gives a rather ok explanation. – Joachim Isaksson Jul 19 '13 at 05:37
3 Answers
11
First of all, Dev C is not a compiler, it's an IDE that interfaces with a compiler (most presumably GCC/MingW in your case). The compiler suite is the one having the header files, not the IDE.
Just do
#include <iostream>
instead of
#include <iostream.h>
and also add using namespace std;
to execute cout
and cin
in Dev C program.

Nikolai Samteladze
- 7,699
- 6
- 44
- 70

Mark Garcia
- 17,424
- 4
- 58
- 94
5
<iostream.h>
is not a standard header file (if anything supports it, it's for backward compatibility from long ago). Use <iostream>
instead. None of the header files introduced in C++ have an extension. The same advice goes for <fstream>
over <fstream.h>
as well.

chris
- 60,560
- 13
- 143
- 205
1
try to include this way.
#include<iostream>

Santhosh Pai
- 2,535
- 8
- 28
- 49
-
Yeah... yeah... The thing is.... I often compare C++ with "C"... #include
is a way to include it. Thanks Guys..! :) – CAPRICORNER Jul 19 '13 at 06:30