基本信息
- 原书名:Object-Oriented Programming in C++: A Project-Based Approach
内容简介
计算机书籍
本书系统地讨论了利用C++语言进行面向对象程序设计的基本概念、原理、方法和语言机制。本书“原理第一、语言第二”的独特编写方法可以尽量避免读者在用C++学习面向对象程序设计时经常出现的问题,即,利用C++语言编写出非面向对象的程序。.
本书力图用日常生活实例引入面向对象的基本概念和原理,从而使具有一定生活常识和经验的读者更易于接受。本书基于项目、逐步学习的方法能使读者更愿意编写可运行的C++程序——从实践中学习。这样,本书虽主要面向计算机相关专业的读者编写,但相关工科专业(如电子工程和工业工程)的读者仍然能够根据少量计算机专业基础理解本书内容,并通过本书学习用C++编写面向对象的程序。..
本书可作为计算机相关专业面向对象程序设计课程的教材,亦可作为其他工科专业学习面向对象程序设计的教材,同时还可以作为程序员或软件工程师的程序设计参考书。...
作译者
现为加拿大尼波星大学(Nipissing University)计算机与数学系助理教授, 尼波星大学学科规划委员会(Academic Planning Committee of Nipissing University)委员,湖南大学软件学院兼职教授,国际电气电子工程师学会(IEEE) 高级会员(senior member),国际计算机器学会(ACM)会员(member),中国旅美科技学会(CAST-USA)终身会员(life member)。
1988年和1997年分别获中国国防科技大学硕士和博士学位。曾任2003年国际电气工程师协会系统-人-控制论(IEEE SMC)国际会议程序委员,2004年加拿大软件工程教育年会程序委员,2004年国际电气工程师协会系统-人-控制论(IEEE SMC)国际会议程序委员。
曾任美国新泽西理工学院访问教授和特聘讲师,中国国防科技大学教授,国防科技大学学术(科技)委员会委员, 国防科技大学计算机系学术委员会委员,湖南省计算机学会计算机体系结构与网络专业委员会副主任。
曾获国际并行工程会议(ISPE/CE 2004)最佳论文奖,国际商用机器公司(IBM)Eclipse创新奖(2004),国际面向对象程序设计系统、语言及应用学术年会(OOPSLA 03)教育家奖(2004),中国国家级优秀教材二等奖一项(2002),中国国家级优秀教学成果二等奖一项(1999),中国部委级科技进步一等奖三项(1991,1994, 1997),中国部级优秀教材二等奖一项 (1996) 。
主编教材三部,主译教材一部, 助编教材一部, 发表论文50余篇。在中、美、加三国系统讲授过20门计算机专业课程,听课学生数达900(中国300,美国460,加拿大200)余人。
目前主要研究方向包括面向对象系统及模型,基于角色的协同工作(Role-Based Collaboration),数据挖掘,分布式系统与软件工程,以及远程教育工具与平台。
周孟初..
1983年获华东工程学院(现南京理工大学)学士学位;1986年获北京理工大学自动控制系硕士,并于同年加入兵器工业部计算机应用研究所;1987年赴美学习深造,1990年获美国伦塞利尔(Rensselaer)理工学院博士学位。1987-1990年期间,曾先后在伦塞利尔理工学院CIM制造中心,纽约州生产率与技术转让中心任助理研究员。自1990年起,在美国新泽西理工学院任助理教授、副教授及正教授等,1995年获终身教职。创办并主持了离散事件系统实验室。从事Petri网的基本理论与工程应用,计算机集成系统的建模、分析和控制机理,多重生命周期,生物信号,及传感网络等方面的研究。已经发表专著两部,主编及助编研究专著各一部,发表杂志论文60多篇,会议论文100多篇,13篇book chapters。其中在IEEE Transactions发表的长文(regular papers)有24篇。许多论文中的概念、模型、结构、方法和算法等多属首次提出,并得到学术界的承认,有的得到企业界的应用。1998年创办了IEEE Systems, Man and Cybernetics学会的离散事件系统专业委员会并担任其主席。2001年创办了IEEE Robotics and Automation学会的半导体工厂自动化专业委员会并担任其共同主席,委员会吸收了大批工业界人士,先后举办多次研讨会,并在国际一流杂志上多次组织出版了相关专业的专辑,极大地促进了相关领域的发展与工业应用。多次担任重大国际会议的总主席及程序委员会主席。担任多个国际杂志编委。主要奖项有:
1994年美国国家科学基金委研究创新奖;
1994年美国制造工程师协会颁发的“计算机集成制造系统大学领先奖”;
1996年新泽西理工学院院长颁发的该年度Harlen J. Perlis 研究奖(成为该奖自成立以来最年轻的得主,记录保持至今);
2000年 Whos Who in Science and Engineering (Marquis Whos Who), 5th
Edition;
2000年德国洪堡基金会的美国资深科学家洪堡研究奖;
2001年新泽西亚美文化委员会的亚裔成就奖以及中国旅美科技协会的学术成就奖;
2002年Whos Who in Engineering Education (WWEE), 2002 edition;
2003年获得IEEE Fellow(院士)称号;
2003年IEEE Systems, Man and Cybernetics Society 杰出贡献奖;
2003年中国自然科学基金海外青年学者合作研究基金奖。
目录
CHAPTER 1Introduction to Object-Oriented Programming
1.1Object-Oriented Thinking Methodology6
1.1.1Induction and Deduction6
1.1.2Composition and Decomposition7
1.1.3Object-Orientation as a Thinking Methodology9
1.2Programming Techniques and Concepts11
1.2.1What is Programming?11
1.2.2Abstraction, Information Hiding and Modeling13
1.2.3Procedural Programming and Modules15
1.2.4Encapsulation18
1.2.5Abstract Data Type20
1.3Object-Oriented Programming21
1.4Other Programming Paradigms24
1.4.1Imperative Programming25
1.4.2Functional Programming25
1.4.3Logic Programming26
1.4.4Relationships between Object-Oriented Programming and Other
Paradigms27
1.5Object-Oriented Languages28
前言
We thoroughly explored the reasons before we decided to begin. There were several challenges at the beginning. First, we have about 20 books on our desk about object-oriented programming and C++ programming. Most of the books are very good. Second,we have many courses to teach and a limited time to write this text. However, we started at last.
·The first motivation comes from the encouragement of the students who took our clas-ses. They said they really learned how to use C++ to make an object-oriented pro-gram by attending our lectures and doing the projects we assigned.
·The second motivation is that we really have many novel ideas for teaching and re-search in object-oriented programming which were accumulated over our ten-year ex-perience in C++ teaching, research and applications.
· The third one is that we find that many students may obtain good grades on examina-tions, but when they are asked to make a practical program, they do not even know where to start. It is our hope that this book is the last book the students will need be-fore they begin practical object-oriented C++ programs.
·The last motivation is that no book on our desk has the structure and the motivation to help students learn in distance. These distance-learning students obtain no or littleface-to-face help from instructors. For this kind of distance-learning classes, it is dif-ficult to evaluate students by ordinary examinations. Without reasonable and well-designed projects, students cannot be successful in distance-learning.
We believe that it is impossible for one to master an object-oriented programminglanguage only by learning its basic structures and syntax and without applying them to real-life projects. Therefore, we have imagined a book to guide students solving a practical prob-lem when they are learning an object-oriented programming language.
The Audience..
This book intends to be a text for advanced programming courses and also intends to be used for programming courses for engineering students. There are a lot of requirements from engineering students who want to learn object-oriented programming with C++. These students are different from the students of corhputer science. They have taken many engineer-ing courses but few computer science courses. Object-oriented programming courses based on our text might be their only programming course. Our text is very good at introducing object-oriented programming to these kinds of students.
This text is for students who want to solve real practical problems by developing object- oriented C++ programs. It will help readers go from a novice to the next level. We hope that this book is not just a textbook, but also a book that will help students who have little or no access to instructors or professors in a distance-learning course.
For a beginner without any knowledge in either C or C++, a C++ programmer's manu-al at hand will be helpful. The prerequisites for this book include basic knowledge of C or C++ , the basic ideas of programming and data structures.
Although our text targets tO the senior or graduate students of Computer Science, we paid more attention to the introduction of principles and concepts with daily life examples which is welcome by mature students of different majors. Therefore, our text is more relevant to those students of engineering who may have one course relevant to programming such as Electrical Engineering and Industrial Engineering. Other texts are not intended to be used by engineering students but computer science students.
Tutorial Innovations
1. Discuss the methodology first and the language second.In the first part, we emphasize methodology and ideas. After the object-oriented methodology is completely discussed, in the second part we discuss C++ program-ming by doing projects. We believe that understanding the methodology first is es-sential for students to make real object-oriented programs in C++.This book supports a true combination of theory and practice.
2. Introduce the methodology via easy-to-understand ideas in life.In the introduction to basic principles, we use simple and ordinary examples to dis-cuss the basic ideas, concepts and principles of object-orientation. This approach makes it easy for students to accept and master the principles.
3. Introduce C++ mechanisms when they are required to do real practical projects.We use a step-by-step method to introduce C++ mechanisms to complete a practical real project. This learning style enables students to master C++, because everything we discuss is exactly what is needed to complete the relevant projects.In the second part, in each chapter we provide an error-free C++ source program that helps students get rid of the fear to compile and run a program.
4. Emphasize the differences between object-oriented and non-object-oriented mecha-nisms in C++.C++ is a "hybrid" language, i. e. , it supports both object-oriented and non-object-oriented programming. A novice may tend to make a non-object-oriented program with C++. We emphasize the differences between OO and non-OO features of C++. We also highlight the possible problems brought in by using some C++ spe-cific features such as friend, multiple inheritance and templates. This emphasis will avoid making a non-object-oriented program with a so-called object-oriented pro-gramming language like C++.
5. Use standard C++ features. The programs discussed in this book use no special fea-tures of any specific C++ compilers. Learning C++ with this book requires no spe-cialized compiler. In other words, any C++ compiler should serve the purpose.
Project Packages
Throughout the text, concepts and programming constructs are amply illustrated with ex-amples of practical import, ance. The package is organized by chapters. All the programs are checked and debugged with Visual C++ 6.0 and without any bugs. ...