From: "Kim Seng" Newsgroups: comp.os.msdos.djgpp Subject: Re: Help in my codes. Date: Thu, 19 Sep 2002 21:12:36 +0800 Organization: Singapore Telecommunications Ltd Lines: 32 Message-ID: References: <3voboug43iagagl91bk5o4buuu2is8fava AT 4ax DOT com> NNTP-Posting-Host: 203.125.48.44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > >> 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 > > 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. Any example on this "std::" coding? mmh, I will try to avoid "using namespace std;" from today onwards. :p > > > #include > > 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. I will try to look for these books. Thanks. :p