Book description
Here’s the easy way to learn how to use C++
C++, developed by Bjarne Stroustrup at Bell Labs, is one of the most widely used programming languages, with close to four million C++ programmers and growing. C++’s popularity has earned it a spot as part of the Standard Library.
Fully updated for the new C++ 2009 standard, C++ All-in-One for Dummies, 2nd Edition compiles seven books into one. This guidebook covers key topics like an introduction to C++, understanding objects and classes, fixing problems, advanced programming, reading and writing files, advanced C++, and building applications with Microsoft MFC. If you're a C++ newbie, start with Book I. But if you’re experienced with C++, simply jump in anywhere to learn more! This all-in-one reference helps you learn to:
Use C++ for Windows, Mac, and Linux by using the CodeBlocks compiler
Understand object-oriented programming
Use various diagrams to design your programs
Recognize how local variables are stored
Use packages, notes, and tags effectively
Make a class persistent
Handle constructors and destructors
With over 25,000 sold of the previous bestselling edition, this second edition with a bonus CD makes C++ easier to understand. It’s a perfect introduction for new programmers and guide for advanced programmers.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Table of contents
- Copyright
- About the Authors
- Authors' Acknowledgments
- Publisher's Acknowledgments
- Introduction
-
I. Introducing C++
- 1. Creating a First C++ Program
- 2. Storing Data in C++
-
3. Directing Your C++ Program Flow
- 3.1. Doing This or Doing That
- 3.2. Evaluating Conditions in C++
- 3.3. Including Evaluations in C++ Conditional Statements
- 3.4. Repeating Actions with Statements That Loop
- 4. Dividing Your Work with Functions
- 5. Dividing Between Source-Code Files
- 6. Referring to Your Data Through Pointers
- 7. Working with Classes
- 8. Using Advanced C++ Features
-
II. Understanding Objects and Classes
- 1. Planning and Building Objects
- 2. Describing Your Program with UML
- 3. Structuring Your Classes with UML
- 4. Demonstrating Behavior with UML
- 5. Modeling Your Programs with UML
- 6. Building with Design Patterns
- III. Fixing Problems
-
IV. Advanced Programming
-
1. Working with Arrays, Pointers, and References
- 1.1. Building Up Arrays
- 1.2. Pointing with Pointers
- 1.3. Referring to References
- 2. Creating Data Structures
-
3. Constructors, Destructors, and Exceptions
-
3.1. Constructing and Destructing Objects
- 3.1.1. Overloading constructors
- 3.1.2. Initializing members
- 3.1.3. Adding a default constructor
- 3.1.4. Functional constructors
- 3.1.5. Calling one constructor from another
- 3.1.6. Copying instances with copy constructors
- 3.1.7. When constructors go bad: failable constructors?
- 3.1.8. Destroying your instances
- 3.1.9. Virtually inheriting destructors
- 3.2. Programming the Exceptions to the Rule
-
3.1. Constructing and Destructing Objects
- 4. Advanced Class Usage
- 5. Creating Classes with Templates
- 6. Programming with the Standard Library
-
1. Working with Arrays, Pointers, and References
- V. Reading and Writing Files
-
VI. Advanced C++
-
1. Exploring the Standard Library Further
- 1.1. Considering the Standard Library Categories
- 1.2. Parsing Strings Using a Hash
- 1.3. Obtaining Information Using a Random Access Iterator
- 1.4. Locating Values Using the Find Algorithm
- 1.5. Using the Random Number Generator
- 1.6. Performing Comparisons Using min and max
- 1.7. Working with Temporary Buffers
- 2. Building Original Templates
-
3. Investigating Boost
- 3.1. Understanding Boost
- 3.2. Obtaining and Installing Boost for CodeBlocks
- 3.3. Using Boost Jam
- 3.4. Using Boost Build
- 3.5. Using Regression
- 3.6. Using Inspect
- 3.7. Understanding BoostBook
- 3.8. Using QuickBook
- 3.9. Using bcp
- 3.10. Using Wave
- 3.11. Building Your First Boost Application Using Date Time
- 4. Boosting up a Step
-
1. Exploring the Standard Library Further
-
VII. Building Applications with Mircosoft MFC
- 1. Working with the Visual C++ 2008 IDE and Projects
- 2. Creating an MFC Dialog Box Project
- 3. Creating an MFC SDI Project
- 4. Using the Visual C++ 2008 Debugger
- 5. Analyzing Your Visual C++ 2008 Code
- A. Automating Your Programs with Makefiles
- B. About the CD
Product information
- Title: C++ All-In-One For Dummies®, 2nd Edition
- Author(s):
- Release date: August 2009
- Publisher(s): For Dummies
- ISBN: 9780470317358
You might also like
book
The 10X Rule: The Only Difference Between Success and Failure
Achieve "Massive Action" results and accomplish your business dreams! While most people operate with only three …
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
Introductory Electrical Engineering With Math Explained in Accessible Language
Offers an understanding of the theoretical principles in electronic engineering, in clear and understandable terms Introductory …