when I enter #include %26lt;iostream.h%26gt; it says, Error C:\TC\INCLUDE\IOSTREAM.H 38: Declaration syntax error
it has like more than 20 errors. but they are all thesame. it say declaration syntax error
But I have no probelm with #include %26lt;stdio.h%26gt;
How do I fix this? Please help me! By, the way I'm a beginner we were force to learned this subject because it is part of our computer class.
Help with c++ when I write "#include %26lt;iostream.h%26gt;" is has an error that say declaration syntax error
It's not complaining about your program, it is complaining about line 38 of iostream.h having a syntax error. Since that is a c++ system header perhaps your system is misconfigured or there is some compiler specific steps you need to take.
Reply:Unfortunately debugging programs is a pain. Often the actually error is not in the line reported but causes the break in that section. Double check all of you semi colons and see if you left some out. Often the simplest way to start.
Good luck.
Reply:did you save the file with a .c extension or a .cpp extension cause this can cause a violation
Reply:try:
#include%26lt;iostream%26gt;
using namespace std;
its because not all compilers are the same and there are different ways to write some syntax.
#include%26lt;iostream.h%26gt;
is for older compilers and older syntax
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment