1

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++?

CAPRICORNER
  • 13
  • 1
  • 1
  • 3

3 Answers3

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,495
  • 6
  • 43
  • 70
Mark Garcia
  • 16,898
  • 3
  • 55
  • 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
  • 58,138
  • 13
  • 137
  • 194
1

try to include this way.

      #include<iostream> 
Santhosh Pai
  • 2,445
  • 7
  • 27
  • 47
  • 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