Topic: Books on Standard C++


Author: gustav@morpheus.demon.co.uk (Paul Moore)
Date: 1997/04/22
Raw View

Are there any good books covering Standard C++, specifically the
library? I've not seen a single book yet which treats (for example)
the string, map, list classes as truly part of the language (OK,
library).

I'd like a book which treats such things as a function

   string ltrim (string str)
   {
      string::size_type n = str.find_first_not_in(" \t");
      if (n == string::npos)
         return str;
      return str.substr(n);
   }

as a basic, trivial example of the sorts of things you can do with
C++.

I know many (most?) compilers still don't support the full library,
but without books describing how to USE it, programmers will never
know what they should have, and won't complain!

If such books exist already, I'd love to know about them.

Paul Moore.
------------------------------------------------------------------------
Paul Moore                                   gustav@morpheus.demon.co.uk
------------------------------------------------------------------------
... Back Up My Hard Drive? I Can't Find The Reverse Switch!
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Jason Poynting <j.poynting@hook-ssg.demon.co.uk>
Date: 1997/04/23
Raw View

In article <335ee322.6749554@news.demon.co.uk>, Paul Moore
<gustav@morpheus.demon.co.uk> writes
>
>Are there any good books covering Standard C++, specifically the
>library? I've not seen a single book yet which treats (for example)

I'd also be interested in any suggestions that anyone has. I'm
specifically looking for something like a complete reference guide to
using the STL. So any recommendations would be appreciated.
--
Jason Poynting
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Andreas Scherer <Scherer@physik.rwth-aachen.de>
Date: 1997/04/23
Raw View

Paul Moore wrote:

> Are there any good books covering Standard C++, specifically the
> library?

Addison-Wesley-Longman, Bonn, published (at least) two excellent new
books on the Standard Template Library and the Standard C++ Library.
A minor drawback for the major group of participants of this groups
is that both books are written in German.  Anyway, here are the
complete references for those who read this language:

   - Ulrich Breymann
     Die C++ Standard Template Library - Einf=FChrung, Anwendung,
     Konstruktion neuer Komponenten
     Addison-Wesley Longman Inc., Bonn, 1996
     ISBN 3-8273-1067-9

   - Nicolai Josuttis
     Die C++ Standardbibliothek
     Addison-Wesley Longman Inc., Bonn, 1996
     ISBN 3-8273-1023-7

Breymann provides insight into the workings of STL, including many
examples on 'set', 'vector', 'map', 'queue', etc.  Of major interest
are extensions to STL, like hashing-based containers and "real"
applications like sorted indexes, thesaurus, graph handling.

Josuttis' book also has a major part on STL, but also covers the
other parts of the C++ library.  The examples are not as elaborate
as those of Breymann's book, and large sections look like simple
lists of the library features; however, being one of the first books
on the new C++ language, it has its uses.

Both books are accompanied by a CD-ROM with similar contents, including
the HP-STL, the 'Safe-STL', the GNU compiler, and all examples of
either book.

Regards,

-- Andreas@Ono-Sendai-VII.Chiba_City
   http://www.or.rwth-aachen.de/zor/martadr.htm
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: "Randy Sharpe" <rsharpe@ncsa.uiuc.edu>
Date: 1997/04/23
Raw View

I actually quite liked the "STL Primer", myself.

Paul Moore <gustav@morpheus.demon.co.uk> wrote in article
<335ee322.6749554@news.demon.co.uk>...
>
> Are there any good books covering Standard C++, specifically the
> library? I've not seen a single book yet which treats (for example)
> the string, map, list classes as truly part of the language (OK,
> library).
>
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Gerard Weatherby <gerardw@alum.mit.edu>
Date: 1997/04/28
Raw View
Jason Poynting wrote:
>
> I'd also be interested in any suggestions that anyone has. I'm
> specifically looking for something like a complete reference guide to
> using the STL. So any recommendations would be appreciated.

I'm very pleased with "STL Tutorial and Reference Guide, C++ Programming
with the Standard Template Library", Musser & Saini, Addison-Wesley,
ISBN 0-201-63398-1.
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: jpotter@falcon.lhup.edu (John E. Potter)
Date: 1997/04/28
Raw View
Paul Moore (gustav@morpheus.demon.co.uk) wrote:
: Are there any good books covering Standard C++, specifically the
: library? I've not seen a single book yet which treats (for example)
: the string, map, list classes as truly part of the language (OK,
: library).

: I'd like a book which treats such things as a function

:    string ltrim (string str)
:    {
:       string::size_type n = str.find_first_not_in(" \t");
:       if (n == string::npos)
:          return str;

Did you really want to return the string full of white space or an
empty string?

:       return str.substr(n);
:    }

: as a basic, trivial example of the sorts of things you can do with
: C++.

Assuming the latter:

 string ltrim (string s) {
  return s.substr(min(s.find_first_not_of(" \t"), s.length()));
  }

How about "The C++ Programming Language" Third Edition?

I have a paper flier stating April 97, and an e-mail flier stating
May 97.  Can't find anything on either Adison Wesley or bs web
pages.

Bjarne, care to give us a preview?  Will he find what he is looking
for there?

John
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: "Craig Anderson" <105116.3041@CompuServ.COM>
Date: 1997/04/28
Raw View
Paul Moore <gustav@morpheus.demon.co.uk> wrote in article
<335ee322.6749554@news.demon.co.uk>...
>
> Are there any good books covering Standard C++, specifically the
> library? I've not seen a single book yet which treats (for example)
> the string, map, list classes as truly part of the language (OK,
> library).

Try the "STL Tutorial and Reference Guide" by Musser and Saini, published
by Addison-Wesley.

Craig
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]