Getting Started. Problem Solving.
The C++ Program.
A First Look at Input/Output.
A Word About Comments.
Preprocessor Directives.
1. The C++ Data Types. Constant Values.
Symbolic Variables.
Pointer Types.
Constant Types.
Reference Types.
Enumeration Types.
Array Types.
Class Types.
Typedef Names.
Volatile Objects.
2. Expressions And Statements. What is an Expression?
Arithmetic Operators.
Equality, Relational and Logical Operators.
Assignment Operators.
Increment and Decrement Operators.
The sizeof Operator.
The Arithmetic if Operator.
Comma Operator.
The Bitwise Operator.
Precedence.
Type Conversion.
Statements.
Statement Flow Control.
The if Statement.
The switch Statement.
The while Statement.
The for Statement.
The do Statement.
The break Statement.
The continue Statement.
The goto Statement.
3. Functions, Scope, and the Free Store. Recursion.
Inline Functions.
Strong Type Checking.
Returning a Value.
The Function Argument List.
Argument Passing.
A Reference Argument.
An Array Argument.
Program Scope.
Local Scope.
Free Store Allocation.
A Linked List Example.
4. Overloaded and Template Functions. Overloaded Function Names.
Template Functions.
Pointers to Functions.
Type-Safe Linkage.
5. The C++ Class. The Class Definition.
Class Objects.
Class Member Functions.
The Implicit this Pointer.
Friends to a Class.
Static Class Members.
Class Member Pointer.
Class Scope.
Unions. A Space-Saving Class.
Bit Field. A Space-Saving Member.
6. Class Member Functions. Class Initialization.
Memberwise Initialization.
Operator Overloading.
A BitVector Class Example.
User-Defined Conversions.
7. Class Templates. Template Class Definition.
Queue and QueueItem Class Definition.
Template Class Instantiation.
Template Class Specialization.
Template Class Static Members.
Template Constant Expression Parameters.
Template Class Nested Types.
Template Class Friend Declarations.
A Template Array Class.
8. Class Derivation And Inheritance. Object-Oriented Programming.
The Zoo Animal Representation.
Derivation Specification.
Information Hiding Under Derivation.
Public, Protected, and Private Base Classes.
Standard Conversions Under Derivation.
Class Scope Under Derivation.
Initialization and Assignment Under Derivation.
Initialization Order Under Derivation.
Overloaded Functions with Class Arguments.
Inheriting Operator Functions.
9. Object-Oriented Programming. Virtual Functions.
Virtual Base Classes.
Template Classes Under Inheritance.
10. Object-Oriented Design. Identifying the Classes.
Defining the Interface.
Living in a Multi-Paradigm Universe.
Appendix A. The C++ I/O Library. Output.
Input.
Additional I/O Operators.
Overloading Operator.
Overloading Operator.
File Input and Output.
Condition States.
Incore Formatting.
Format State.
A Strongly Typed Library.
Appendix B. Exception Handling. The Try Block.
The Catch Handler and Throw Cause.
The Function Throw List.
Summary.
Appendix C. Compatibility Of C++ with C. The C++ Function Prototype.
Where C++ and C Differ.
Linkage Between C++ and C.
Moving from C to C++.
Appendix D. Compatibility with Release 2.0. Changes to Class Inheritance.
Changes to Classes.
Changes to the Basic Language. 0201548488T04062001