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

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: <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: 63.72.148.162
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" <Query AT singnet DOT com DOT sg> wrote in message news:<ambdit$t2j$1 AT mawar DOT singnet DOT com DOT sg>...
> > 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;
> 
> or
> 
> #include <iostream.h>
> 
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019