C++大学教程(第5版)(英文版)(C++How To Program)

分類: 图书,教材教辅与参考书,大学,大学英语,教材与辅导,
品牌: 戴特尔
基本信息·出版社:电子工业出版社
·页码:1054 页
·出版日期:2008年
·ISBN:9787121055799
·条形码:9787121055799
·包装版本:1版
·装帧:平装
·开本:16
·正文语种:英语
·外文书名:C++How To Program
产品信息有问题吗?请帮我们更新产品信息。
内容简介《C++大学教程》是一本C++编程方面的优秀教程,全面介绍了过程式编程与面向对象编程的原理与方法,细致地分析了各种性能问题、可移植性问题以及可能出错的情况。与第四版相比,《C++大学教程》从内容和结构上都做了较大幅度的修订与有意义的提升,特别是再“尽早接触类和对象”这一观点的指导下,从第1章就开始介绍类和对象的内容,突破了传统教学模式,使学生直接“考虑对象”和深入掌握面向对象的基本概念。作者通过大量的示例程序,重点突出了利用UML进行面向对象的设计,引入了流行的Web应用开发,并且帮助学生创建真实世界的C++应用程序。《C++大学教程》无论从广度和深度上来说都非常全面,并且从基础概念讲起,同样适合没有编程经验的读者学习。《C++大学教程》可作为高等院校相关专业的编程语言教材和C++编程教材,也是软件设计人员进行C++程序开发的宝贵参考资料。
编辑推荐EARLY CLASSES/OBJECTS/OOP
CLASSES, OBJECTS, ENCAPSULATION
INHERITANCE, POLYMORPHISM
INTEGRATED OOP CASE STUDIES:
TIME, GRADEBOOK, EMPLOYEE
FUNDAMENTALS
HISTORY, HARDWARE, SOFTWARE
STREAM l/O, TYPES, OPERATORS
CONTROL STATEMENTS, FUNCTIONS
ARRAYS, VECTORS
POINTERS, REFERENCES
STRING CLASS, C-STYLE STRINGS
OPERATOR OVERLOADING
EXCEPTIONS, FILES
WEB PROGRAMMING
BIT AND CHARACTER MANIPULATION
GNU C++/VISUAL C++ DERUGGERS
DATA STRUCTURES
RECURSION, SEARCHING, SORTING
LISTS, QUEUES, STACKS, TREES
TEMPLATES
STANDARD TEMPLATE LIBRARY:
CONTAINERS, ITERATORS,
AND ALGORITHMS
OOD/UML 2 ATM CASE STUDY(OPTIONAL)
DETERMINING CLASSES,
ATTRIBUTES, STATES, ACTIVITIES,
OPERATIONS, COLLABORATIONS
DIAGRAMS:USE CASE,
CLASS,STATE, ACTIVITY,
COMMUNICATION, SEQUENCE
The complete, authoritative DEITEL LIVE-CODE introduction to C++, object-oriented programming (OOP) and object-oriented design (OOD) with the UML 2 C++ is one of the most popular object-oriented programming languages. This new edition of the World's most widely used C++ textbook uses a carefully paced early classes and objects approach.Great early introduction to classes and objects. Tbe combination of live-code examples and detailed figures provides a unique visualization ofC++ concepts. -Earl LaBatt, University of New Hampshire This new edition signals a significant step in the pedagogic evolution of the De#el C++ series. The early classes and objects perspective is consistent witb current thinking regarding tbe education of today's software developers. -Rie Heishman, Northern Virginia Community College I am continually impressed with the Deitels'ability to c&arly explain concepts and ideas, wbich allows the student to gain a well-rounded understanding of the language and software development.-Karen Arlien, Bismarck State College The book is comprehensive, correct and crystal clear No other textbook comes close in carefully explaining tbe intricacies of this powerfid language.-James Huddleston, Independent Consultant This book is one of the best of its kind. It is an excellent "objects first coverage of C++ that remains accessible to beginners.The example-driven presentation is enriched by the optional OOD/UML ATM case study that contextualizes the material in an ongoing software engineering project.-Gavin Osborne, Saskatchewan Institute Introducing the UML to students early on is a great idea.-Raymond Stephensou, Microsoft Great coverage of polymorphism. I especially appreciate that you explain how the compiler implements polymorphism under the hood. I wish I had such a clearpresentation of data structures when I was a student.-Ed James-Beekham, Borland I love the optional ATM case study!It can be the capstone experience that combines the building blocks of the language and software engineering concepts into an extremely relevant example. -Karen Arlien, Bismarck State College Includes a nice introduction to searching and sorting, especially with tbe intro to Big-O (without being overly tbeoretical about it). The exercises are especially good.-Robert Myers, Florida State University C++ How to Program, 5/e, provides a comprehensive coveraoe of object-oriented prooramming in C++, including several major integrated case studies: the GradeBook class (Chapters 3-7), the Time class (three sections of Chapter 9),the Employee class (Chapters 12-13) and the optional OOD/UML 2 ATM System (Chapters 1-7, 9 and 13).Dr. Harvey M. Deitel and Paul J. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized cotporate trainine and content creation organization specializing in C++, Java, C, C#, Visual Basic.NET,Visual C++.NET, XML, Python, Perl, Internet, Web and object technologies. The Deitels are the authors of many other best-selling textbooks including Java How to Program, 6/e, Internet & World Wide Web How to Program, 3/e, C How to Program, 4/e and Operating Systems, 3/e.C++ How to Program, 5/e's, instructor and student resources include Web sites (www.deitel.com and www. p renhall. corn/deitel) with the book's code examples (also on the enclosed CD) and information for faculty,students and professionals. Contact the authors at deitel@deitel. com For information on DEITEL DIVE INTO SERIES on-site corporate training offered worldwide, and to subscribe to the free DEITEL BUZZ ONLINE e-mail newsletter, visit:www. dei teI. tom PRENTICE HALL Upper Saddle River, NJ 07458 www.prenhall.com.
目录
Chapter 1 Introduction to Computers, the Internet and World Wide Web
1.1 Introduction
1.2 What Is a Computer?
1.3 Computer Organization
1.4 Early Operating Systems
1.5 Personal, Distributed and Client/Server Computing
1.6 The Imemet and the World Wide Web
1.7 Machine Languages, Assembly Languages and High-Level Languages
1.8 History of C and C++
1.9 C++ Standard Library
1.10 History of Java
1.11 FORTRAN, COBOL, Pascal and Ada
1.12 Basic, Visual Basic, Visual C++, C# and .NET
1.13 Key Software Trend: Object Technology
1.14 Typical C++ Development Environment
1.15 Notes About C++ and C++ How to Program, 5/e
1.16 Test-Driving a C++ Application
1.17 Software Engineering Case Study: Introduction to Object Technology and the UML (Required)
1.18 Wrap-Up
1.19 Web Resources
Chapter 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 (Optional) Software Engineering Case Study: Examining the ATM Requirements Document
2.9 Wrap-Up
Chapter 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 Defining 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 (Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements Document
3.12 Wrap-Up
Chapter 4 Control Statements: Part 1
4.1 Introduction
4.2 Algorithms
4.3 Pseudocode
4.4 Control Structures
4.5 if Selection Statement
4.6 if… else Double-Selection Statement
4.7 while Repetition Statement
4.8 Formulating Algorithms: Counter-Controlled Repetition
4.9 Formulating Algorithms: Sentinel-Controlled Repetition
4.10 Formulating Algorithms: Nested Control Statements
4.11 Assignment Operators
4.12 Increment and Decrement Operators
4.13 (Optional) Software Engineering Case Study: Identifying Class Attributes in the ATM System...
4.14 Wrap-Up
Chapter 5 Control Statements: Part 2
5.1 Introduction
5.2 Essentials of Counter-Controlled Repetition
5.3 for Repetition Statement
5.4 Examples Using the for Statement
5.5 do... while Repetition Statement
5.6 switch Multiple-Selection Statement
5.7 break and continue Statements
5.8 Logical Operators
5.9 Confusing Equality (=) and Assignment (=) Operators
5.10 Structured Programming Summary
5.11 (Optional) Software Engineering Case Study: Identifying Objects' States and Activities in the ATM System
5.12 Wrap-Up
Chapter 6 Functions and an Introduetion to Reeursiun
6.1 Introduction
6.2 Program Components in C++
6.3 Math Library Functions
6.4 Function Definitions with Multiple Parameters
6.5 Function Prototypes and Argument Coercion
6.6 C++ Standard Library Header Files
6.7 Case Study: Random Number Generation
6.8 Case Study: Game of Chance and Introducing enum
6.9 Storage Classes
6.10 Scope Rules
6.11 Function Call Stack and Activation Records
6.12 Functions with Empty Parameter Lists
6.13 Inline Functions
6.14 References and Reference Parameters
6.15 Default Arguments
6.16 Unary Scope Resolution Operator
6.17 Function Overloading
6.18 Function Templates
6.19 Recursion
6.20 Example Using Recursion: Fibonacci Series
6.21 Recursion vs. Iteration
6.22 (Optional) Software Engineering Case Study: Identifying Class Operations in the ATM System ...
6.23 Wrap-Up
Chapter 7 Arrays and Vectors
7.1 Introduction
7.2 Arrays
7.3 Declaring Arrays
7.4 Examples Using Arrays
7.5 Passing Arrays to Functions
7.6 Case Study: Class GradeBook Using an Array to Store Grades
7.7 Searching Arrays with Linear Search
7.8 Sorting Arrays with Insertion Sort
7.9 Multidimensional Arrays
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array
7.11 Introduction to C++ Standard Library Class Template vector
7.12 (Optional) Software Engineering Case Study: Collaboration Among Objects in the ATM System.
7.13 Wrap-Up
Chapter 8 Pointers and Pointer-Based Strings
8.1 Introduction
8.2 Pointer Variable Declarations and Initialization
8.3 Pointer Operators
8.4 Passing Arguments to Functions by Reference with Pointers
8.5 Using const with Pointers
8.6 Selection Sort Using Pass-by-Reference
8.7 sizeof Operators
8.8 Pointer Expressions and Pointer Arithmetic
8.9 Relationship Between Pointers and Arrays
8.10 Arrays of Pointers
8.11 Case Study: Card Shuffling and Dealing Simulation
8.12 Function Pointers
8.13 Introduction to Pointer-Based String Processing
8.13.1 Fundamentals of Characters and Pointer-Based Strings
8.13.2 String Manipulation Functions of the String-Handling Library
8.14 Wrap-Up
Chapter 9 Classes: A Deeper Look, Part 1
9.1 Introduction
9.2 Time Class Case Study
9.3 Class Scope and Accessing Class Members
9.4 Separating Interface from Implementation
9.5 Access Functions and Utility Functions
9.6 Time Class Case Study: Constructors with Default Arguments
9.7 Destructors
9.8 When Constructors and Destructors Are Called
9.9 Time Class Case Study: A Subtle Trap —— Returning a Reference to a private Data Member
9.10 Default Memberwise Assignment
9.11 Software Reusability
9.12 (Optional) Software Engineering Case Study: Starting to Program the Classes of the ATM System
9.13 Wrap-Up
Chapter 10 Classes: A Deeper Look, Part 2
10.1 Introduction
10.2 const (Constant) Objects and const Member Functions
10.3 Composition: Objects as Members of Classes
10.4 friend Functions and friend Classes
10.5 Using the this Pointer
10.6 . Dynamic Memory Management with Operators new and delete
10.7 static Class Members
10.8 Data Abstraction and Information Hiding
10.8.1 Example: Array Abstract Data Type
10.8.2 Example: String Abstract Data Type
10.8.3 Example: Queue Abstract Data Type
10.9 Container Classes and Iterators
10.10 Proxy Classes
10.11 Wrap-Up
Chapter 11 Operator Overloading; String and Array Objects
11.1 Introduction
11.2 Fundamentals of Operator Overloading :
11.3 Restrictions on Operator Overloading
11.4 Operator Functions as Class Members vs. Global Functions
11.5 Overloading Stream Insertion and Stream Extraction Operators
11.6 Overloading Unary Operators
11.7 Overloading Binary Operators
11.8 Case Study: Array Class
11.9 Converting between Types
11.10 Case Study: String Class
11.11 Overloading ++ and ——.
11.12 Case Study: A Date Class
11.13 Standard Library Class string
11.14 explicit Constructors
11.15 Wrap-Up
Chapter 12 Objeet-Orientetl Programming: Inheritance
12.1 Introduction
12.2 Base Classes and Derived Classes
12.3 protected Members
12.4 Relationship between Base Classes and Derived Classes
12.4.1 Creating and Using a CommissionEmployee Class
12.4.2 Creating a BasePlusCommissionEmployee Class Without Using Inheritance
12.4.3 Creating a Commission Employee-BasePlus Commission Employee Inberitance Hierarchy
12.4.4 Commission Employee-BasePlus Commission Employee Inheritance Hierarchy Using protected Data
12.4.5 CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using private Data
……[看更多目录]
序言Welcome to C++ and C++ How to Program, Fifth Edition! C++ is a world-class programming language for developing industrial strength, high-performance computer applications. We believe that this book and its support materials have everything instructors and students need for an informative, interesting, challenging and entertaining C++ educational experience. In this Preface, we overview the many new features of C++ How to Program, 5/e. The Tour of the Booksection of the Preface gives instructors, students and professionals a sense of C++ How to Program, 5/e's coverage of C++ and objectoriented programming. We also overview various conventions used in the book, such as syntax coloring the code examples, "code washing" and code highlighting. We provide information about free compilers that you can f'md on the Web. We also discuss the comprehensive suite of educational materials that help instructors maximize their students' learning experience, including the Instructor's Resource CD, PowerPoint Slide lecture notes, course management systems, SafariX (Pearson Education's WebBook publications) and more.
文摘插图:
