Mail Archives: djgpp/2002/09/18/10:35:06
Kim Seng <Query AT singnet DOT com DOT sg> wrote:
> Thanks for the information, I tried to run the codes with 2 other compliers,
> TClite and MS Visual C++ and I could run the codes as in my attachement. But
> for TClite, I had append #include <iosteam.h> instead of #include <iostream>
> and comment out using namespace std;
That's clear indication that this code is indeed assuming an
old-fashioned, no longer correct version of the C++ language.
> The codes that I had attached is from a reference book that I'm now
> learning. But I'm using DJGPP to complie it. If you are interested
> in the author, he is SCHILDT.
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.
Mr. Schildt is well-known for writing lots of books; in a very clear
and understandable style, too. But unfortunately, he's also known to
make so many massive errors that there's at least one on every page on
every book of his (excepting those where he wrote only half of the
pages, like his famous "commented ANSI C standard").
If you see a C++ book that still has <iostream.h> all over the place,
get a different one.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -