Many students and programmers familiar with Pascal are now looking to upgrade their skills to a well-structured object-oriented programming language such as C++. This textbook provides such an "upgrade path" by presenting a course on C++ in the spirit of structured programming. Both authors teach this material to a wide variety of students and include numerous programming exercises to test a reader's understanding and to increase their confidence in programming in C++.
Inhaltsverzeichnis
1 C++ as Structured Programming: An Historical Perspective. - 1. 0 Introduction. - 1. 1 Structured Programming. - 1. 2 Algorithms + Data Structures = Objects. - 1. 3 Programming Paradigms. - References. - 2 The C++ Subset That Covers Pascal. - 2. 0 Introduction. - 2. 1 Orientation to C++. - 2. 2 Data Types and Data Structures. - 2. 3 Arithmetic, Boolean, and Logical Expressions. - 2. 4 Control Structures. - 2. 5 Functions. - 2. 6 Dynamically Allocated Structures. - 2. 7 Output and Input. - 2. 8 Summary and Review. - References. - 3 Procedural C++ That Extends Pascal. - 3. 0 Introduction. - 3. 1 Operators. - 3. 2 Pointers. - 3. 3 Extending Functions. - 3. 4 Summaries. - References. - 4 C++ and Object-Oriented Programming. - 4. 0 Introduction. - 4. 1 Classes and Objects. - 4. 2 Constructors and Destructors. - 4. 3 Manipulating Abstractions: Friends and Operator Overloading. - 4. 4 Relationships Among Classes: Composition and Derivation. - References. - 5 Templates. - 5. 0 Introduction. - 5. 1 Function Templates. - 5. 2 Class Templates. - Reference. - Exercises. - 1. - 2. - 3. - 4. - 5. - Answers to Odd-Numbered Exercises. - 1. - 2. - 3. - 4. - 5.