作者:Herbert Schildt
出版日期:April 28, 2008
出版社:McGraw-Hill
页数:509
ISBN:ISBN-10: 007148860X ISBN-13: 978-0071488600
文件格式:PDF
Your Ultimate “How-To” Guide to C++ Programming!
Legendary programming author Herb Schildt shares some of hisfavorite programming techniques in this high-powered C++ “cookbook.”Organized for quick reference, each “recipe” shows how to accomplish apractical programming task. A recipe begins with a list of keyingredients (classes, functions, and headers) followed by step-by-stepinstructions that show how to assemble them into a complete solution.Detailed discussions explain the how and why behind each step, and afull code example puts the recipe into action. Each recipe ends with alist of options and alternatives that suggest ways to adapt thetechnique to fit a variety of situations. Whether you’re a beginner oran experienced pro, you’ll find recipes that are sure to satisfy yourC++ programming appetite!
Topics include:
String Handling · Standard Template Library (STL) Containers ·Algorithms · Function Objects · Binders · Negators · Adaptors ·Iterators · I/O · Formatting Data
Learn how to:
Tokenize a null-terminated string
Create a search and replace function for strings
Implement subtraction for string objects
Use the vector, deque, and list sequence containersUse the container adaptors stack, queue, and priority_queue
Use the map, multimap, set, and multiset associative containersReverse, rotate, and shuffle a sequence
Create a function object
Use binders, negators, and iterator adapters
Read and write files
Use stream iterators to handle file I/O
Use exceptions to handle I/O errors
Create custom inserters and extractors
Format date, time, and numeric data
Use facets and the localization libraryOverload the , ( ), and -> operators
Create an explicit constructor
And much, much more
About the Author
Herb Schildt is a leading authority on C, C++,Java, and C#, and is a master Windows programmer. His programming bookshave sold more than 3.5 million copies worldwide and have beentranslated into all major foreign languages. Herb is the author ofnumerous bestsellers, including C++: The Complete Reference, Java: The Complete Reference, C#: The Complete Reference, and C++: A Beginner’s Guide.