www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/19/08:00:02

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help in my codes.
Date: 19 Sep 2002 11:55:44 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 27
Message-ID: <amce00$pb7$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> <am9n2n$qb2$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <ambdit$t2j$1 AT mawar DOT singnet DOT com DOT sg>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1032436544 25959 137.226.32.75 (19 Sep 2002 11:55:44 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 19 Sep 2002 11:55:44 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:

>> 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;

That's the new, officially standardized way.  But to work around your
naming conflicts regarding the variable "count", it might be better to
avoid "using namespace std;" and instead salt your code with explicit
"std::" prefixes where necessary.

> #include <iostream.h>

That's the older way.  As of version 3.0 and later, GCC will complain
about this, warning you about "deprecated usage".

>> The one by Stroustrup should be up to date, e.g.
> Do you have any good book to introduce to this newbie? :p

No, because I don't actively do C++ myself, but if I did, I'd be using
"the real thing", i.e. Stroustrup.
-- 
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