Mail Archives: djgpp/2003/11/17/11:16:16
cmad_x AT yahoo DOT com (Chris Mantoulidis) wrote:
[snip ]
> hmm... i get another warning, and i still get it (i forgot to say
> about it above): "this file includes at least one deprecated or
> antiqued header. Please consider using one the 32 headers found in the
> section 17.4.1.2 section of the C++ standard. Examples include
> substituting the <X> header for the <X.h> header for C++ includes, or
> <stream> instead of the deprecated header <strstream.h>. To disable
> this warning use ...." (some arguments)
>
> y does the above mean? only header i used was <iostream.h>............
Chris, I don't mean to be a smart-a**, but, uhhmmm, did you read the
warning? Look at the third sentence: "Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>." Does that answer
your question?
If not, take a look at Section 27.4 of the C++ FAQ:
http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4
In short, since 1998, headers like <iostream.h> have been nonstandard.
The correct header - as the warning message you reprinted says - is
<iostream>. Going along with this change, all functions, classes, and
objects from the standard library now reside in namespace std. If you
have no idea what that means, you really need to get a more up to date
C++ book - try Accelerated C++ by Koenig and Moo if you're learning
the language, or The C++ Programming Language (3d ed. or special
ed.)by Stroustrup as a reference.
Out of curiousity, what book were you using?
Best regards,
Tom
- Raw text -