C++ Standard Library Practical Tips (Programming Series)
Book format: An electronic version of a printed book that can be read on a computer or handheld device designed specifically for this purpose.
Publisher: Date:10/3/2005 - Delmar Thomson Learning
By: Greg Reese
C++ Standard Library Practical Tips provides quick, easy-to-use solutions to common programming problems. The tips are grouped by topics including, lists, deques, vectors, text processing, numerical algorithms, numerical processing, and containers, with titles that describe the programming problems they solve, not the techniques they use, so programmers can quickly look up a solution when a problem is encountered. Topics covered include using the right container, removing excess memory, initializing a map with specified values, and using a function in an algorithm. 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 demonstrates 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. The project starts with a brief introduction to digital image processing and enhancement, then it moves on to an examination of the C++ code that actually contains the black-and-white photograph. Next, it demonstrates the use of the tips through functions that create or modify images. For each function, the book shows two images, one before and one after the processing, and then shows and explains the code with references to the tips the code uses. The companion CDROM includes all the source code and programs from the book, as well as a Borland C++ compiler. FEATURES: * Provides a practical, easy-to-use reference to the C++ Standard Library filled with common programming solutions * Shows the practical application of the Standard Library, as opposed to just explaining how the library works * Covers a variety of topics, from general principles of Standard Library programming to text strings to vectors and numeric algorithms * Provides quick answers to common programming problems such as constructing a container filled with different values, getting a C-style array from a vector, splicing lists, modifying a value in a set, freezing an argument of a function object, copying strings and substrings, stripping white space, and performing arithmetic on containers * Includes a CD-ROM with all of the source code and programs from the book, as well as a Borland C++ compiler