From: Thomas8675309 AT yahoo DOT com (Tom) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help in my codes. Date: 19 Sep 2002 06:55:48 -0700 Organization: http://groups.google.com/ Lines: 35 Message-ID: <7b68d58f.0209190555.72035350@posting.google.com> References: <3voboug43iagagl91bk5o4buuu2is8fava AT 4ax DOT com> NNTP-Posting-Host: 63.72.148.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1032443748 9240 127.0.0.1 (19 Sep 2002 13:55:48 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 19 Sep 2002 13:55:48 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie 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). > > > 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. Best regards, Tom