From: Hans-Bernhard Broeker 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: References: <3voboug43iagagl91bk5o4buuu2is8fava AT 4ax DOT com> 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 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 instead of #include > 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 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.