出版时间:2012-8 出版社:人民邮电出版社 作者:Stephen Prata 页数:全两册
Tag标签:无
内容概要
C++是在C语言基础上开发的一种集面向对象编程、泛型编程和过程化编程于一体的编程语言,是C语言的超集。《C++ Primer
Plus(第6版)英文版(上、下册)》是根据2003年的ISO/ANSI
C++标准编写的,通过大量短小精悍的程序详细而全面地阐述了C++的基本概念和技术,并专辟一章介绍了C++11新增的功能。
全书分18章和10个附录,分别介绍了C++程序的运行方式、基本数据类型、复合数据类型、循环和关系表达式、分支语句和逻辑运算符、函数重载和函数模板、内存模型和名称空间、类的设计和使用、多态、虚函数、动态内存分配、继承、代码重用、友元、异常处理技术、string类和标准模板库、输入/输出、C++11新增功能等内容。
《C++ Primer
Plus(第6版)英文版(上、下册)》针对C++初学者,书中从C语言基础知识开始介绍,然后在此基础上详细阐述C++新增的特性,因此不要求读者有C语言方面的背景知识。
《C++ Primer
Plus(第6版)英文版(上、下册)》可作为高等院校C++课程的教材,也可供初学者自学C++时使用。
作者简介
作者:(美)PrataStephen Prata在美国加州肯特菲尔得的马林学院教授天文、物理和计算机科学。他毕业于加州理工学院,在美国加州大学伯克利分校获得博士学位。他单独或与他人合作编写的编程图书有十多本,其中《New C Primer Plus》获得了计算机出版联合会1990年度最佳“How-to”计算机图书奖,《C++ Primer Plus》获得了计算机出版联合会1991年度最佳“How-to”计算机图书奖提名。
书籍目录
上册
Introduction
1 Getting Started with C++
Learning C++: What Lies Before You
The Origins of C++: A Little History
Portability and Standards
The Mechanics of Creating a Program
Summary
2 Setting Out to C++
C++ Initiation
C++ Statements
More C++ Statements
Functions
Summary
Chapter Review
Programming Exercises
3 Dealing with Data
Simple Variables
The const Qualifier
Floating-Point Numbers
C++ Arithmetic Operators
Summary
Chapter Review
Programming Exercises
4 Compound Types
Introducing Arrays
Strings
Introducing the string Class
Introducing Structures
Unions
Enumerations
Pointers and the Free Store
Pointers, Arrays, and Pointer Arithmetic
Combinations of Types
Array Alternatives
Summary
Chapter Review
Programming Exercises
5 Loops and Relational Expressions
Introducing for Loops
The while Loop
The do while Loop
The Range-Based for Loop (C++11)
Loops and Text Input
Nested Loops and Two-Dimensional Arrays
Summary
Chapter Review
Programming Exercises
6 Branching Statements and Logical Operators
The if Statement
Logical Expressions
The cctype Library of Character Functions
The ?: Operator
The switch Statement
The break and continue Statements
Number-Reading Loops
Simple File Input/Output
Summary
Chapter Review
Programming Exercises
7 Functions: C++’s Programming Modules
Function Review
Function Arguments and Passing by Value
Functions and Arrays
Functions and Two-Dimensional Arrays
Functions and C-Style Strings
Functions and Structures
Functions and string Class Objects
Functions and array Objects
Recursion
Pointers to Functions
Summary
Chapter Review
Programming Exercises
8 Adventures in Functions
C++ Inline Functions
Reference Variables
Default Arguments
Function Overloading
Function Templates
Summary
Chapter Review
Programming Exercises
9 Memory Models and Namespaces
Separate Compilation
Storage Duration, Scope, and Linkage
Namespaces
Summary
Chapter Review
Programming Exercises
10 Objects and Classes
Procedural and Object-Oriented Programming
Abstraction and Classes
Class Constructors and Destructors
Knowing Your Objects: The this Pointer
An Array of Objects
Class Scope
Abstract Data Types
Summary
Chapter Review
Programming Exercises
11 Working with Classes
Operator Overloading
Time on Our Hands: Developing an Operator Overloading
Example
Introducing Friends
Overloaded Operators: Member Versus Nonmember Functions
More Overloading: A Vector Class
Automatic Conversions and Type Casts for Classes
Summary
Chapter Review
Programming Exercises
12 Classes and Dynamic Memory Allocation
Dynamic Memory and Classes
The New, Improved String Class
Things to Remember When Using new in Constructors
Observations About Returning Objects
Using Pointers to Objects
Reviewing Techniques
A Queue Simulation
Summary
Chapter Review
Programming Exercises
下册
13 Class Inheritance
Beginning with a Simple Base Class
Inheritance: An Is-a Relationship
Polymorphic Public Inheritance
Static and Dynamic Binding
Access Control: protected
Abstract Base Classes
Inheritance and Dynamic Memory Allocation
Class Design Review
Summary
Chapter Review
Programming Exercises
14 Reusing Code in C++
Classes with Object Members
Private Inheritance
Multiple Inheritance
Class Templates
Summary
Chapter Review
Programming Exercises
15 Friends, Exceptions, and More
Friends
Nested Classes
Exceptions
Runtime Type Identification
Type Cast Operators
Summary
Chapter Review
Programming Exercises
16 The string Class and the Standard Template Library
The string Class
Smart Pointer Template Classes
The Standard Template Library
Generic Programming
Function Objects (a.k.a. Functors)
Algorithms
Other Libraries
Summary
Chapter Review
Programming Exercises
17 Input, Output, and Files
An Overview of C++ Input and Output
Output with cout
Input with cin
File Input and Output
Incore Formatting
Summary
Chapter Review
Programming Exercises
18 Visiting with the New C++ Standard
C++11 Features Revisited
Move Semantics and the Rvalue Reference
New Class Features
Lambda Functions
Wrappers
Variadic Templates
More C++11 Features
Language Change
What Now?
Summary
Chapter Review
Programming Exercises
Appendixes
A Number Bases
B C++ Reserved Words
C The ASCII Character Set
D Operator Precedence
E Other Operators
F The string Template Class
G The Standard Template Library Methods and Functions
H Selected Readings and Internet Resources
I Converting to ISO Standard C++
J Answers to Chapter Reviews
Index
媒体关注与评论
约20年前,我是看Stephen Prata的C Primer Plus学C语言的。现在Stephen Prata的新书又回到我手上了,这次是C++ Primer Plus(第6版)。对于系统编程语言来说,除了C++,我们没有太多其他的选择。D语言曾经有挑战C++的机会,但机会似乎已经消失,我预期未来GO语言也会挑战C++,但不管怎样,目前C++依然是王者。这本C++ Primer Plus(第6版)是C++图书中内容最新最丰富者。C++是一门很容易误用的语言,学习C++需要钜细靡遗。我选择用这本书复习并更新我的C++知识。——创新工场首席架构师 蔡学镛C++很有用,但也很难学。学C++之难,一是学习曲线陡峭,二是容易误入歧途。C++11标准颁布之后,这个问题就更严重。C++ Primer Plus 是在市场的多年检验中脱颖而出的一本名著,它的价值,正在于降低陡峭的学习曲线,并且确保读者学到“正确”的C++。——孟岩如果说C++ Primer是C++语言的一本百科全书,讲述了C++语言里面“有什么”;那么C++ Primer Plus就是这门语言的一本通识课本,它实实在在地教给程序员如何理解和使用这种内容丰富、威力强大的语言。本书最大的特点就是务实,通过类比、举例和习惯多维度的方式,为程序员打下坚实的、使用C++进行日常工作的基础。——高博
编辑推荐
这是一本饮誉全球十数年的C++经典教程。蔡学镛、孟岩、高博众多技术专家力荐第五版中文版畅销7年,销量逾70000册!最容易上手的C++学习教程
图书封面
图书标签Tags
无
评论、评分、阅读与下载