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,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