iostream.h error

+1 Vinit Sonavane · July 5, 2014
Hi bucky i liked ur c programming tutorials nd were really usefull for me.Recently i am doing c++ programs in dev c++.there is an error which says
1 21 D:\Users\Vison8\Documents\c prog\addition.c [Error] iostream.h: No such file or directory
compilation terminated.
Can u tell me how to fix this iam sending you a simple c++ program if u find any fix then notify me

#include<iostream.h>
#include<conio.h>
int main(void)
{
int a,b,c;
a=4;
b=5;
c=a+b;
    cout<<"Addition="<<c;
<c;
getch();
}
</c;

Post a Reply

Replies

Oldest  Newest  Rating
0 Vinit Sonavane · July 11, 2014
Thanks buddy it worked
+1 Mathias Frits Rørvik · July 6, 2014
add this above main: 
    using namespace std; 

and replace getch() with cin.get()
0 Vinit Sonavane · July 6, 2014
I also Have Done that but still getting same error
+1 Horacio Accipiter · July 6, 2014
<conio.h> and getch() are not part of the C++ standard library.

As for <iostream.h>, it's <iostream> without the .h part.
  • 1

C++

107,263 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator