C++ Standard Library Practical Tips teaches beginning and experienced programmers how to use the Standard Library and its major component the Standard Template Library (STL) effectively in routine programming chores. The book provides 100 quick, easy-to-use tips and solutions to common programming problems such as using the right container, getting a C-style array from a vector, initializing a map with specifi ed values, and computing the mean, median, and mode. The solutions are grouped by topics including, lists, deques, vectors, text processing, numerical algorithms, numerical processing, and containers so programmers can quickly look up a solution when they encounter a problem. To demonstrate the use of the tips in practical application, the book concludes with a capstone project about digital image processing and, in particular, image enhancement. This application shows the power of the Standard Library as it graphically illustrates how just a few lines of Standard Library code can produce major changes in the appearance of an image.
Key Features * Provides a practical, easy-to-use reference to the C++ Standard Library filled with common programming solutions * Covers a variety of topics, from general principles of Standard Library programming to text strings, vectors, and numeric algorithms * Shows the practical application of the C++ Standard Library, as opposed to just explaining how the library works * Provides quick answers to problems such as storing specified values in an existing container, manipulating groups of bits, merging lists, using a map or multimap as a dictionary, using a class member function in an algorithm, extracting tokens that are between delimiters, making a sequence of random numbers, and computing statistics of data * Includes a CD-ROM with Borland C++ Builder 6 Personal, the Boost portable C++ source library, and all of the source code and programs from the book
ON THE CD-ROM (see Appendix B for more details) * Borland® C++ Builder? 6 Personal. Contains all the tools needed to develop in C++ for the Windows platform * Boost Library version 1.32.0. Code for the entire Boost portable C++ source library * Source Code. Contains all the source code from the tips and digital image processing examples in the book * Figures. Includes all of the fi gures from the book by chapter
SYSTEM REQUIREMENTS: Intel Pentium II/400 MHz or compatible; Microsoft Windows 98, 2000 (SP2), or XP; 128 MB RAM (256 MB recommended); 550 MB hard disk space (full install); CD-ROM drive; SVGA or higher resolution monitor (800x600, 256 color); Mouse or other pointing device.
One of the best amongst 2nd tier C++/STL books
This volume is definitely worth a read or two, if you want to open your eyes to a variety of applications of STL containers and algorithms. For people already into the practice and way of using STL on a regular basis, it gives you reinforcement and validation that you did good and right in your previous work. Even if you are good already, you may still learn a trick or two here and there through the pages. One of the things I wasn't aware is that a member function must be a const one (calling it won't change the state of the object) if used with a binder (bind1st or bind2nd).
IMHO, the set of books in the `C++ In Depth` series, edited by Bjarne Stroustrup and published by Addison-Wesley, belong to the first tier, high quality, and highly intellectual. A number of others in the `Professional Computing` series under the aegis of Brian Kernighan, such those by Scott Meyers, belong to the 1st tier, too. There are surely others as well.
One characteristic of the 1st tier works is that they don't spell out all the gory details; they stop short, rightfully, at elaborating on too practical side of things. That is where books such as this particular one come in to fill the void. In terms of quality and content of writing, they may be (and in many cases, in fact) not as rigorous as those in the 1st tier, but they help you see things about which beans are spilled. BTW, an example of 1st tier books about STL in particular is certainly Josuttis' `The C++ Standard Library: A Tutorial and Reference.`
A recommended, standard pick for any working regularly in C++
Both beginning and advanced programmers receive a standard collection of tips on using C++'s Standard Library feature and its Standard Template Library in common programming routines with the powerful book by Greg Reese C++ Standard Library Practical Tips. A CD-ROM accompanies a reference offering over a hundred solutions for programs from handling different values to getting a C-style array from a vector and finding medians and modes. Tips on algorithms, containers, numerical processing and more hold plenty of examples and usage insights. A recommended, standard pick for any working regularly in C++.
Write Better Code Faster
The C++ Standard Library is a series of routines that comes with the official version of the language. They are well written, carefully defined routines that accomplish many tasks that turn out to be common to many programs. The routines in the library are efficient enough that they are probably better than the average programmer can write. They are reasonably convenient and safe. Unfortunately, clarity, consistency, and ease of use were not part of the design goals.
The library can be divided into classifications:
The Standard Template Library:
The C++ Standard Library:
This book is a guide to the hundred routines in the library. There is some general overall information about each class of library routine, then there is a two to four page description of each routine. The routines will make it easier and faster to write good programs.