本书由著名作者Walter Savitch编写,美国很多大学采用它为“面向对象程序设计(OOP)”的教材,是一本非常畅销的教材,其前5版在全球已经拥有数十万读者。作者结合自己多年的教学经验,根据教学大纲精心设计并编写了书中内容。
根据国内“C++面向对象程序设计”双语教学的需要,对原书进行了一定的改编,删去了C语言的内容,使之更适合国内OOP的教学大纲。
Chapter 1 Introduction to C++
1.1 INTRODUCTION TO C++
Origins of the C++ Language
C++ and Object-Oriented Programming
A Sample C++ Program
PROGRAMMING TIP: Input and Output Syntax
Layout of a Simple C++ Program
PITFALL: Putting a Space before the include File Name
Compiling and Running a C++ Program
PROGRAMMING TIP: Getting Your Program to Run
1.2 PROGRAM STYLE
Comments
Naming Constants
Chapter Summary
Programming Projects
chapter 2 C++ Basics
chapter 3 Functions
chapter 4 Arrays and Pointers
chapter 5 I/O Streams as an Introduction to Objects and Classes
chapter 6 Strings and Vectors
chapter 7 Defining Classes
chapter 8 Friends, Overloaded Operators, and Arrays in Classes
chapter 9 Separate Compilation and Namespaces
chapter 10 Inheritance
chapter 11 Exception Handling
chapter 12 Templates
chapter 13 Standard Template Library
APPENDIX 1 C++ Keywords
APPENDIX 2 Precedence of Operators
APPENDIX 3 Some Library Functions
APPENDIX 4 Inline Functions
APPENDIX 5 Overloading the Array Index Square Brackets
APPENDIX 6 The this Pointer
APPENDIX 7 Overloading Operators as Member Operators