本书完整地讲述了C++面向对象程序设计,其中包含了几个大的集成安全分析,涵盖了类与对象、控制语句、函数与递归、数组与向量、指针与基于指针的字符串、操作符重载、面向对象编程(继承与多态)等核心内容。本书可作为程序设计语言课程的教材,对于程序设计人员是很好的技术参考书。(本书为英文版)
C++是最流行的面向对象程序设计语言之一。本书以全球使用最广泛的C抖教材C++How to Program最新版为基础,涵盖了类与对象、控制语句、函数与递归、数组与向量、指针与基于指针的字符串、操作符重载、面向对象编程(继承与多态)等核心内容。本书采用了循序渐进的“类和对象提早介绍方法”。书中除了含有大量的自测题及自测题答案外,还包含了几个大的集成案例分析:GradeBook类、Time类以及Employee类。本书非常适合国内教学情况,可作为程序设计语言课程的教材,对于程序设计人员也是很好的技术参考书。
I Introduction
1.1 Introduction
1.2 History of C and C++
1.3 C++ Standard Library
1.4 Key Software Trend: Object Technology
1.5 Typical C++ Development Environment
1.6 Notes About C++ and Small C++ How to Program, 5/e
1.7 Test-Driving a C++ Application
1.8 Introduction to Object Technology and the UML
1.9 Wrap-Up
1.10 Web Resources
2 Introduction to C++ Programming
2.1 Introduction
2.2 First Program in C++: Printing a Line of Text
2.3 Modifying Our First C++ Program
2.4 Another C++ Program: Adding Integers
2.5 Memory Concepts
2.6 Arithmetic
2.7 Decision Making: Equality and Relational Operators
2.8 Wrap-Up
3 Introduction to Classes and Objects
3.1 Introduction
3.2 Classes, Objects, Member Functions and Data Members
3.3 Overview of the Chapter Examples
3.4 Defining a Class with a Member Function
3.5 I)efining a Member Function with a Parameter
3.6 Data Members, set Functions and get Functions
3.7 Initializing Objects with Constructors
3.8 Placing a Class in a Separate File for Reusability
3.9 Separating Interface from Implementation
3.10 Validating Data with set Functions
3.11 Wrap-Up
………………………………………