| |
| |
Introduction | |
| |
| |
Object-Oriented Design | |
| |
| |
Classes and Abstract Data Types | |
| |
| |
Inheritance | |
| |
| |
Polymorphism | |
| |
| |
Basic C++ | |
| |
| |
Some Miscellaneous Extensions in C++ | |
| |
| |
Functions | |
| |
| |
C++ Operators | |
| |
| |
Introduction to C++ Input/Output | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
Classes | |
| |
| |
Creating Classes | |
| |
| |
Sample Application: A Stack Class | |
| |
| |
A First Look at Constructors and Destructors | |
| |
| |
Sample Application: A Zip Code Class | |
| |
| |
A First Look at Class Operator Overloading | |
| |
| |
Sample Application: A Complex Number Class | |
| |
| |
Friend Functions | |
| |
| |
Assertions and Program Correctness | |
| |
| |
Generic Classes Using Templates | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
More on Classes | |
| |
| |
Sample Application: A String Class | |
| |
| |
More on the Copy Constructor | |
| |
| |
Friend Classes | |
| |
| |
Sample Application: a Binary Search Tree Class | |
| |
| |
Sample Application: An Iterator Class | |
| |
| |
Static Data Members and Methods | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
Inheritance | |
| |
| |
Basic Concepts and Syntax | |
| |
| |
Constructors Under Inheritance | |
| |
| |
Sample Application: Measuring Computer Performance | |
| |
| |
Polymorphism and Virtual Methods | |
| |
| |
Sample Application: Virtual Tree Traversal | |
| |
| |
Destructors Under Inheritance | |
| |
| |
Multiple Inheritance | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
Operator Overloading | |
| |
| |
Basic Operator Overloading | |
| |
| |
Sample Application: Bounds Checking | |
| |
| |
Sample Application: An Associative Array | |
| |
| |
Type Conversions | |
| |
| |
Sample Application: File Subscripts | |
| |
| |
Memory Management Operators | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
The C++ Input/Output Class Hierarchy | |
| |
| |
Overview | |
| |
| |
The Class ios | |
| |
| |
The High-Level Input/Output Classes | |
| |
| |
Manipulators | |
| |
| |
The File Input/Output Classes | |
| |
| |
Sample Application: A Random Access File Class | |
| |
| |
The Character Array Input/Output Classes | |
| |
| |
Sample Application: A High-Level Copy Function | |
| |
| |
The Buffer Classes | |
| |
| |
Common Programming Errors | |
| |
| |
Programming Exercises | |
| |
| |
Advanced Topics | |
| |
| |
Exception Handling | |
| |
| |
Run-Time Type Identification | |
| |
| |
Namespaces | |
| |
| |
Other Object-Oriented Languages | |
| |
| |
New Issues | |
| |
| |
Appendix | |
| |
| |
ASCII Table | |
| |
| |
Selected C++ Functions | |
| |
| |
UNIX | |
| |
| |
Borland C++ | |
| |
| |
Hints and Solutions to Odd-Numbered Exercises | |
| |
| |
Index | |