From: "Kim Seng" Newsgroups: comp.os.msdos.djgpp Subject: Re: Help in my codes. Date: Fri, 20 Sep 2002 08:43:54 +0800 Organization: Singapore Telecommunications Ltd Lines: 57 Message-ID: References: <3voboug43iagagl91bk5o4buuu2is8fava AT 4ax DOT com> <7b68d58f DOT 0209190555 DOT 72035350 AT posting DOT google DOT com> NNTP-Posting-Host: 203.125.49.168 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 "Tom" wrote in message news:7b68d58f DOT 0209190555 DOT 72035350 AT posting DOT google DOT com... > "Kim Seng" wrote in message news:... > > > 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; > > > > or > > > > #include > > > > Can you clarify? > > The first one is the standard, the second is deprecated (i.e., avoid > using it if possible). Thanks. I had clarified on that. :p But it seems that the first one is a bit of the lazy type as it would collect all the standard library in one. :p > > > > > 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. > > Do you have any good book to introduce to this newbie? :p > > The best intro book you will find if you have previous programming > experience in any other language is "Accelerated C++" by Andrew Koenig > and Barbara Moo. It will teach you the correct habits from the start. > If you already know C, then Bruce Eckel's "Thinking in C++" is very > good, and you can get a free copy on the web (search google). > Stroustrup's "The C++ Programming Language" (either 3d edition or > special edition) is a great reference - I swear by it - but a bit > difficult for a newbie to learn from without a more introductory book. > Good luck. Tom, With your guide, I had done a search for Stroustrup's C++ programming book and I felt great as I had finally pieces up evrything that was taught in this newsgroup. :p BTW, I had pick up some links which I think that it is useful. Thanks to Dr Stroustrup. A few basic uses of C++ introducing its standard library http://www.research.att.com/~bs/3rd_tour2.pdf compatibility with C and earlier versions of C++ http://www.research.att.com/~bs/3rd_compat.pdf One of the best lesson that I ever learned. :p I hope that these links would help the rest.