本书介绍了何谓C++面向对象程序设计、为什么以及如何用C++进行面向对象程序设计;书中给出了大量的示例、演示说明以及完整的程序;本书还介绍了面向对象方法的概念,简要讨论了系统的面向对象分析与设计的重要内容。
本书以一种简单易懂的写作风格,介绍了何谓C++面向对象程序设计、为什么以及如何用C++进行面向对象程序设计。书给出了大量的示例、演示说明以及完整的程序。这些示例程序既简单也很具有教学意义。在必要的时候,本书还使用了概念图,使得介绍更加清晰,便于更好地理解。本书还介绍了面向对象方法的概念,简要讨论了系统的面向对象分析与设计的重要内容。本书的最大亮点是附录A的两个新的程序设计项目:(1)基于菜单的计算系统;(2)银行系统。它们演示了如何在现实应用程序中集成C++的各种特性。
本书不仅可以作为高等院校C++面向对象程序设计的教材,也是希望了解C++语言和面向对象程序设计知识的专业人员的很好参考书。
Preface
1 Principles of Object-Oriented Programming
1.1 Software Crisis
1.2 Software Evolution
1.3 A Look at Procedure-Oriented Programming
1.4 Object-Oriented Programming Paradigm
1.5 Basic Concepts of object-Oriented Programming
1.6 Benefits of OOP
1.7 Object-Oriented Languages
1.8 Applications of OOP
Summary
Review Questions
2 Beginning with C++
3 Tokens,Expressions and Control Structures
4 Functions in C++
5 Classes and Objects
6 Constructors and Destructors
7 Operator Overloading and Type Conversions
8 Inheritance:Extending Classes
9 Pointers,Virtual Functions and Polymorphism
10 Managing Console I/O Operations
11 Working with Files
12 Templates
13 Exception Handling
14 Introduction to the Standard Template Library
15 Manipulating Strings
16 New Featrues of ANSI C++ Standard
17 Object-Oriented Ststems Development
Appendix A:Proj'ects
Appendix B:EMcuting Turbo C+ +
Appendix C:executing C+ + Under Windows
Appendix D:Glossary of ANSI C+ + Keywords
Appendix E:C+ + OPeratorprCcedence
Appendix F:POints to Remember
Appendix G:Glossary of important C+ + and OOP Terms
Appendix H:C+ + Proficiency Test
Bibliography