| |
| |
Acknowledgments | |
| |
| |
Introduction | |
| |
| |
C++ Fundamentals | |
| |
| |
C++ Basics | |
| |
| |
History of C++ | |
| |
| |
What Is C++? | |
| |
| |
How to Write a C++ Program | |
| |
| |
C++ Fundamentals | |
| |
| |
Statements and Expressions | |
| |
| |
Operators | |
| |
| |
Basic Structure of a C++ program | |
| |
| |
Header Files | |
| |
| |
Function Basics | |
| |
| |
Variable Scope | |
| |
| |
Compiling | |
| |
| |
Commenting Your Code | |
| |
| |
Console Input and Output | |
| |
| |
Output to the Screen | |
| |
| |
Keyboard Input | |
| |
| |
Other Input Options | |
| |
| |
Iostream Details | |
| |
| |
Using the Standard Namespace | |
| |
| |
Additional Formatting | |
| |
| |
Arrays, Strings, and Bitwise Operations | |
| |
| |
Arrays and Strings | |
| |
| |
Character Arrays | |
| |
| |
Using and Formatting Strings | |
| |
| |
Bitwise Operations | |
| |
| |
Functions | |
| |
| |
Basic Structure | |
| |
| |
Creating and Calling Functions | |
| |
| |
Function Overloading | |
| |
| |
Header Files | |
| |
| |
Passing Values by Reference | |
| |
| |
Built-in Functions | |
| |
| |
Math Operations | |
| |
| |
Time | |
| |
| |
Random Numbers | |
| |
| |
Decision Structures and Loops | |
| |
| |
If Statements | |
| |
| |
Switch Statements | |
| |
| |
For Loops | |
| |
| |
Do Loops | |
| |
| |
While Loops | |
| |
| |
File Input and Output | |
| |
| |
What Is a Flat File? | |
| |
| |
Ifstream and Flat Files | |
| |
| |
Ofstream and Output | |
| |
| |
Sequential Files | |
| |
| |
Binary Files | |
| |
| |
Exception Handling | |
| |
| |
Errors and Exceptions | |
| |
| |
Try-catch Blocks | |
| |
| |
Exception Classes | |
| |
| |
Throwing Exceptions | |
| |
| |
Saving Errors to Logs | |
| |
| |
General Testing and Debugging | |
| |
| |
User-Defined Data Types | |
| |
| |
Structures | |
| |
| |
Typedefs | |
| |
| |
Unions | |
| |
| |
Enumerations | |
| |
| |
Bit Fields | |
| |
| |
Pointers | |
| |
| |
Pointer Basics | |
| |
| |
Pointer Operations | |
| |
| |
Pointers to Pointers | |
| |
| |
Pointers to Functions | |
| |
| |
Pointers to Structures | |
| |
| |
Initializing Pointers | |
| |
| |
Object-Oriented Programming | |
| |
| |
Classes | |
| |
| |
Object-Oriented Theory | |
| |
| |
Abstraction | |
| |
| |
Encapsulation | |
| |
| |
Inheritance | |
| |
| |
Polymorphism | |
| |
| |
What Is a Class? | |
| |
| |
Creating and Using a Class | |
| |
| |
Pointers to Classes | |
| |
| |
Classes and Exception Handling | |
| |
| |
Constructors and Destructors | |
| |
| |
Arrays and Pointers with Classes | |
| |
| |
Inheritance | |
| |
| |
Fundamentals of Inheritance | |
| |
| |
Inheritance and Exception Handling | |
| |
| |
Nested Classes | |
| |
| |
Class Relationships | |
| |
| |
Virtual Functions | |
| |
| |
Advanced Object-Oriented Concepts | |
| |
| |
Polymorphism | |
| |
| |
Multiple Inheritance | |
| |
| |
Indirect Inheritance | |
| |
| |
Pointers to Classes | |
| |
| |
Abstract Classes and Pure Virtual Functions | |
| |
| |
Advanced Topics In C++ | |
| |
| |
Basic Data Structures and Algorithms | |
| |
| |
Data Structures | |
| |
| |
Algorithms | |
| |
| |
Bubble Sort | |
| |
| |
Quick Sort | |
| |
| |
The Algorithm Header File | |
| |
| |
Recursion | |
| |
| |
The Fibonacci Sequence | |
| |
| |
Build Your Own Game In C++ | |
| |
| |
The Essentials of Games Programming | |
| |
| |
Simple Command-Line Games | |
| |
| |
Graphics Games Programming | |
| |
| |
Card-Dealing Engine | |
| |
| |
Visual C++ | |
| |
| |
Introduction to Visual C++ | |
| |
| |
Windows Architecture | |
| |
| |
A Simple Windows Application | |
| |
| |
Message Box Function | |
| |
| |
Components | |
| |
| |
Button | |
| |
| |
Combo Box | |
| |
| |
List Box | |
| |
| |
The Dialog Application | |
| |
| |
Built-in Functions | |
| |
| |
Message Beep Function | |
| |
| |
Mouse Events | |
| |
| |
More Windows Applications with Visual C++ | |
| |
| |
Additional Components | |
| |
| |
Menus | |
| |
| |
Icons | |
| |
| |
Customizing the about Dialog | |
| |
| |
SDI and MDI Applications | |
| |
| |
The SDI framework | |
| |
| |
The MDI framework | |
| |
| |
Other Resources | |
| |
| |
C++ Compilers | |
| |
| |
C/C++ tutorials | |
| |
| |
C++ Code Samples and References | |
| |
| |
Programming/C++ Magazines | |
| |
| |
C++ Books | |
| |
| |
Glossary of C++ and Programming Terms | |
| |
| |
Answers to Review Questions | |
| |
| |
Chapter 1 | |
| |
| |
Chapter 2 | |
| |
| |
Chapter 3 | |
| |
| |
Chapter 4 | |
| |
| |
Chapter 5 | |
| |
| |
Chapter 6 | |
| |
| |
Chapter 7 | |
| |
| |
Chapter 8 | |
| |
| |
Chapter 9 | |
| |
| |
Chapter 10 | |
| |
| |
Chapter 11 | |
| |
| |
Chapter 12 | |
| |
| |
Chapter 13 | |
| |
| |
Chapter 14 | |
| |
| |
Chapter 15 | |
| |
| |
Chapter 16 | |
| |
| |
The C++ Builder Compiler | |
| |
| |
Common Mistakes | |
| |
| |
The Missing Semicolon | |
| |
| |
The Extra Semicolon | |
| |
| |
The Single Equals | |
| |
| |
Wrong Number of Brackets | |
| |
| |
Misspellings | |
| |
| |
Capitalization | |
| |
| |
Initializing Pointers | |
| |
| |
Overflowing an Array | |
| |
| |
Improper For Loop Declarations | |
| |
| |
Missing Visual C++ App Wizard Steps | |
| |
| |
About the Cd-Rom | |
| |
| |
Index | |