473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

hi, i recieve this error in my programms:iostream.h:no such file or directory

i dont know why i recieve this error in most of my programms. eg:
#include< iostream.h >
int main ( )
{
int a;
int b;
int sum;
cout<<"enter two integer numbers">>
cin>>a>>b;
sum=a+b;
cout<<"sum is"<<sum<<"0"
cout<<a<<"+"<<b<<"="<<sum;
return 0;
}
Nov 21 '10 #1
1 1926
weaknessforcats
9,208 Expert Mod 8TB
iostream.h is C++ from before 1998. Most compilers do not ship those antique headers.

Try <iostream>, which is the new header.

None of the standard ANSI C++ headers end in ".h".
Nov 21 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: TuPLaD | last post by:
Hello, I just made a little C++ console application: #include "iostream" using namespace std; int main () { cout << "Hello Mars !"; return 0;
6
by: Siddharth Taneja | last post by:
Hi, I have a very simple prg over here, trying to read the lines of a file #include <iostream> #include <fstream> #include <iostream> #include <string> using namespace std;
1
by: Bill Sun | last post by:
Hi, I just want to using a console application in the .net enviroment. Before the main(), I using the #include "iostream.h" but the .net tell me:...
2
by: Alvo von Cossel I | last post by:
hi, i have copied some c++ code from a book. here it is: #include <iostream.h> int Add (int x, int y) { cout << "In Add(), received " << x << " and " << y << "\n"; return (x+y); }
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
22
by: fsunglim | last post by:
Hi, i'm a c++ nub, i got a simple file in.cpp which i uses .net to compile but it gives me an error: "fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory". ...
8
by: mohammaditraders | last post by:
#include <iostream.h> #include <stdlib.h> #include <conio.h> #include <string.h> class Matrix { private : int numRows, numCols ; int elements ;
4
by: noobles | last post by:
I'm trying to make a command line parser, but I'm not exactly sure where to put my file.txt file so that this thing can read it. The most logical place seemed to be the directory the project was...
10
shashahayes
by: shashahayes | last post by:
This is the message I am getting when I try to compile it. fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your...
1
by: praseedhasuresh | last post by:
unable to include fiile iostream,conio&unable to create output NOMNAME00.obj
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.