Tables of Contents for C++ Programming Fundamentals
SECTION I C++ FUNDAMENTALS
1
178
How to Write a C++ Program
5
1
Statements and Expressions
12
3
Basic Structure of a C++ program
15
3
Console Input and Output
23
20
Using the Standard Namespace
36
3
Arrays, Strings, and Bitwise Operations
43
22
Using and Formatting Strings
54
4
Creating and Calling Functions
67
5
Passing Values by Reference
76
3
Decision Structures and Loops
91
26
File Input and Output
117
14
ifstream and Flat Files
121
3
Errors and Exceptions
132
1
Saving Errors to Logs
138
3
General Testing and Debugging
141
6
User-Defined Data Types
147
18
Pointers to Functions
173
1
Pointers to Structures
174
2
Initializing Pointers
176
3
SECTION II OBJECT-ORIENTED PROGRAMMING
179
68
Object-Oriented Theory
181
2
Creating and Using a Class
186
6
Classes and Exception Handling
194
3
Constructors and Destructors
197
5
Arrays and Pointers with Classes
202
5
Fundamentals of Inheritance
207
10
Inheritance and Exception Handling
217
3
Advanced Object-Oriented Concepts
229
18
Abstract Classes and Pure Virtual Functions
242
5
SECTION III ADVANCED TOPICS IN C++
247
40
Basic Data Structures and Algorithms
249
20
The Algorithm Header File
262
1
The Fibonacci Sequence
265
4
Build Your Own Game in C++
269
18
The Essentials of Games Programming
270
1
Simple Command-Line Games
271
8
Graphics Games Programming
279
2
SECTION IV VISUAL C++
287
82
Introduction to Visual C++
289
38
A Simple Windows Application
291
16
The Dialog Application
312
1
Message Beep Function
319
2
More Windows Applications with Visual C++
327
42
Additional Components
328
12
Customizing the about Dialog
354
6
SDI and MDI Applications
360
9
APPENDIX A OTHER RESOURCES
369
4
C++ Code Samples and References
370
1
Programming/C++ Magazines
370
1
APPENDIX B GLOSSARY OF C++ AND PROGRAMMING TERMS
373
4
APPENDIX C ANSWERS TO REVIEW QUESTIONS
377
14
APPENDIX D THE C++ BUILDER COMPILER
391
6
APPENDIX E COMMON MISTAKES
397
4
The Missing Semicolon
397
1
Wrong Number of Brackets
398
1
Initializing Pointers
398
1
Improper For Loop Declarations
399
1
Missing Visual C++ App Wizard Steps
399
2
APPENDIX F ABOUT THE CD-ROM
401
6