Charles River Media - CPP Programming Fundamentals (CyberRookies)
Table of Contents
BackCover
C++ Programming Fundamentals
Introduction
On the CD
Section I: C++ Fundamentals
Chapter 1: C++ Basics
What Is C++?
How to Write a C++ Program
C++ Fundamentals
Statements and Expressions
Basic Structure of a C++ program
Function Basics
Variable Scope
Compiling
Commenting Your Code
Summary
Review Questions
Chapter 2: Console Input and Output
Keyboard Input
iostream Details
Using the Standard Namespace
Additional Formatting
Summary
Review Questions
Chapter 3: Arrays, Strings, and Bitwise Operations
Character Arrays
Using and Formatting Strings
Bitwise Operations
Review Questions
Chapter 4: Functions
Creating and Calling Functions
Function Overloading
Header Files
Passing Values by Reference
Built-in Functions
Math Operations
Time
Random Numbers
Summary
Review Questions
Chapter 5: Decision Structures and Loops
Switch Statements
For Loops
Do Loops
While Loops
Summary
Review Questions
Chapter 6: File Input and Output
ifstream and Flat Files
ofstream and Output
Sequential Files
Binary Files
Summary
Review Questions
Chapter 7: Exception Handling
try-catch Blocks
Exception Classes
Throwing Exceptions
Saving Errors to Logs
General Testing and Debugging
Summary
Review Questions
Chapter 8: User-Defined Data Types
Structures
Typedefs
Unions
Enumerations
Bit Fields
Summary
Review Questions
Chapter 9: Pointers
Pointer Operations
Pointers to Pointers
Pointers to Functions
Pointers to Structures
Initializing Pointers
Summary
Review Questions
Section II: Object-Oriented Programming
Chapter 10: Classes
What Is a Class?
Creating and Using a Class
Pointers to Classes
Classes and Exception Handling
Constructors and Destructors
Arrays and Pointers with Classes
Summary
Review Questions
Chapter 11: Inheritance
Inheritance and Exception Handling
Nested Classes
Class Relationships
Virtual Functions
Summary
Review Questions
Chapter 12: Advanced Object-Oriented Concepts
Multiple Inheritance
Indirect Inheritance
Pointers to Classes
Abstract Classes and Pure Virtual Functions
Summary
Review Questions
Section III: Advanced Topics in C++
Chapter 13: Basic Data Structures and Algorithms
Algorithms
The Algorithm Header File
Recursion
The Fibonacci Sequence
Summary
Review Questions
Chapter 14: Build Your Own Game in C++
Simple Command-Line Games
Graphics Games Programming
Card-Dealing Engine
Summary
Review Questions
Section IV: Visual C++
Chapter 15: Introduction to Visual C++
A Simple Windows Application
Message Box Function
Components
Built-in Functions
Message Beep Function
Mouse Events
Summary
Review Questions
Chapter 16: More Windows Applications with Visual C++
Additional Components
Menus
Icons
Customizing the about Dialog
SDI and MDI Applications
Summary
Review Questions
Appendix A: Other Resources
C/C++ tutorials
C++ Code Samples and References
Programming/C++ Magazines
C++ Books
Appendix B: Glossary of C++ and Programming Terms
Appendix C: Answers to Review Questions
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
Appendix D: The C++ Builder Compiler
Appendix E: Common Mistakes
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
Appendix F: About the CD-ROM
System Requirements
Index
Index_A
Index_B
Index_C
Index_D
Index_E
Index_F
Index_G
Index_H
Index_I
Index_L
Index_M
Index_N
Index_O
Index_P
Index_Q
Index_R
Index_S
Index_T
Index_U
Index_V
Index_W
Index_X
List of Figures
List of Tables
CD Content