Description
Book SynopsisC++ is established as the leading industry programming language for object-oriented software development. This book provides a step-by-step approach to all language features, explains their practical usage, provides intuitive examples that are not too complex or easy, and provides advice for implementing classes and libraries to develop programs.
Trade Review"...technically solid, excellent introduction to C++..." (Cvu, December 2002)
Table of ContentsPreface.
1. About this Book.
Why Did Write this Book?
Prerequisites.
Organization of the Book.
How Should You Read this Book?
Example Code and Additional Informations.
Feedback.
2. Introduction: C++ and Object-Oriented Programming.
The C++ Language.
C++ as an Object-Oriented Programming Language.
Other Concepts of C++.
Teminology.
3. Basic Concepts of C++ Programs.
The First Program.
Types, Operators, and Control Constructs.
Functions and Modules.
Strings.
Collections.
Exception Handling.
Pointers, Arrays, and C-Strings.
Memory Management Using new and delete.
Communication with the Outside World.
4. Class Programming.
The First Class: Fraction.
Operators for Classes.
Running Time and Code Optimization.
References and Constants.
Input and Output Using Streams.
Friends and Other Types.
Exception Handling for Classes.
5. Inheritance and Polymorphism. Virtual Functions.
Polymorphism.
Multiple Inheritance.
Design Pitfalls with Inheritance.
6. Dynamic and Static Members.
Dynamic Members.
Other Aspects of Dynamic Members.
Inheritance of Classes with Dynamic Members.
Classes Containing Classes.
Static Members and Auxiliary Types.
7. Templates.
Why Templates?
Function Templates.
Class Templates.
Non-Type Template Parameters.
Additional Aspects of Templates.
Templates in Practice.
8. The Standard I/O Library in Detail.
The Standard Stream Classes.
File Access.
Stream Classes for Strings.
9. Other Language Features and Details.
Additional Details of the Standard Library.
Defining Special Operators.
Additional Aspects of new and delete.
Function Pointers and Member Pointers.
Combining C++ with C Code.
Additional Keywords.
10. Summary.
Hierarchy of C++ Operators.
Class-Specific Properties of Operations.
Rules for Automatic Type Conversion.
Useful Programming Guidelines and Conventions.
Bibliography.
Glossary.
Index.