www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/18/10:35:06

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help in my codes.
Date: 18 Sep 2002 11:12:23 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 30
Message-ID: <am9n2n$qb2$1@nets3.rz.RWTH-Aachen.DE>
References: <am3jv2$vbr$1 AT reader01 DOT singnet DOT com DOT sg> <3voboug43iagagl91bk5o4buuu2is8fava AT 4ax DOT com> <am4ptt$7g0$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <am8no9$ll2$1 AT mawar DOT singnet DOT com DOT sg>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1032347543 26978 137.226.32.75 (18 Sep 2002 11:12:23 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 18 Sep 2002 11:12:23 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019