C++, Compilers

“iostream.h” Header files not supporting in Dev C++[Solved]

Hi Friends,

Today I’ll tell you about how to do C programming and C++ programming on your Windows x64 PC or laptop.I’d suggest using Dev C++.  In that you can choose compiler version- 32bit or 64bit.But there’s one problem with Dev C++.  That I’ll tell you how to solve.

Problem Description:

In older Borland Turbo C++ IDE, we could directly write a simple ‘Hello World’ C++ program like below-

#include<iostream.h>

#include<conio.h>

int main()

{

cout<<“Hello World”;

getch();

}

But when I tried the same code in Dev C++, I got the following error- 1  21           C:\Users\cullen_boyy_\Documents\Dev C++\Hello World.cpp [Error] iostream.h: No such file or directory  – compilation terminated.

Problem Solution-

You need to do little modification in the code to run it on Dev C++. I used the Dev C++ v5.8.3. The updated code is below.

#include<iostream>

#include<conio.h>

using namespace std;

int main()

{

cout<<“Hello World”;

getch();

}

And it ran successfully!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s