Mail Archives: djgpp/2002/09/19/10:00:04
"Kim Seng" <Query AT singnet DOT com DOT sg> wrote in message news:<ambdit$t2j$1 AT mawar DOT singnet DOT com DOT sg>...
> > That's clear indication that this code is indeed assuming an
> > old-fashioned, no longer correct version of the C++ language.
> mmh, does that I'm on the wrong track. A bit confused now on which one is
> the standard.
> #include <iostream>
> using namespace std;
>
> or
>
> #include <iostream.h>
>
> Can you clarify?
The first one is the standard, the second is deprecated (i.e., avoid
using it if possible).
>
> > If earlier books by him, and their reputation, are anything to go by,
> > your best bet would be to throw away that book and get a useful one.
> > The one by Stroustrup should be up to date, e.g.
> Do you have any good book to introduce to this newbie? :p
The best intro book you will find if you have previous programming
experience in any other language is "Accelerated C++" by Andrew Koenig
and Barbara Moo. It will teach you the correct habits from the start.
If you already know C, then Bruce Eckel's "Thinking in C++" is very
good, and you can get a free copy on the web (search google).
Stroustrup's "The C++ Programming Language" (either 3d edition or
special edition) is a great reference - I swear by it - but a bit
difficult for a newbie to learn from without a more introductory book.
Good luck.
Best regards,
Tom
- Raw text -