Compilation Error: Missing iostream Library?

  • Thread starter Thread starter mkbh_10
  • Start date Start date
  • Tags Tags
    Linux
AI Thread Summary
The discussion addresses a compilation error related to the missing iostream library in a programming assignment. The primary issue stems from the incorrect inclusion of the header file, specifically using #include <iostream.h> instead of the correct #include <iostream>. Participants emphasize the importance of understanding error messages to identify the root cause of problems. It is noted that the error message indicates the absence of the iostream.h file, which does not exist in standard C++. Correcting the header inclusion resolves the compilation issue.
mkbh_10
Messages
217
Reaction score
0

Homework Statement


I have uploaded the pic of the program and the errors shown , tell me where the problem is ?


Homework Equations




The Attempt at a Solution



http://i52.tinypic.com/67mpg4.png
 
Physics news on Phys.org
You won't always have other people to help you with these problems. You need to learn to read and understand those error messages. What do you think the error is? The problem is right there in one of the error messages. The biggest challenge in reading those messages is filtering out the secondary messages that result as a consequence of the real error.
 
it says iostream.h , no such file or directory , i don't know the reason for this error
 
Because there is no such thing as an include file named iostream.h.
 
Change
#include <iostream.h>
to
#include <iostream>
 

Similar threads

Replies
6
Views
2K
Replies
1
Views
2K
Replies
2
Views
5K
Replies
5
Views
2K
Replies
3
Views
2K
Back
Top