出版時(shí)間:2012-8 出版社:人民郵電出版社 作者:Stephen Prata 頁數(shù):全兩冊(cè)
Tag標(biāo)簽:無
內(nèi)容概要
C++是在C語言基礎(chǔ)上開發(fā)的一種集面向?qū)ο缶幊?、泛型編程和過程化編程于一體的編程語言,是C語言的超集。《C++ Primer
Plus(第6版)英文版(上、下冊(cè))》是根據(jù)2003年的ISO/ANSI
C++標(biāo)準(zhǔn)編寫的,通過大量短小精悍的程序詳細(xì)而全面地闡述了C++的基本概念和技術(shù),并專辟一章介紹了C++11新增的功能。
全書分18章和10個(gè)附錄,分別介紹了C++程序的運(yùn)行方式、基本數(shù)據(jù)類型、復(fù)合數(shù)據(jù)類型、循環(huán)和關(guān)系表達(dá)式、分支語句和邏輯運(yùn)算符、函數(shù)重載和函數(shù)模板、內(nèi)存模型和名稱空間、類的設(shè)計(jì)和使用、多態(tài)、虛函數(shù)、動(dòng)態(tài)內(nèi)存分配、繼承、代碼重用、友元、異常處理技術(shù)、string類和標(biāo)準(zhǔn)模板庫、輸入/輸出、C++11新增功能等內(nèi)容。
《C++ Primer
Plus(第6版)英文版(上、下冊(cè))》針對(duì)C++初學(xué)者,書中從C語言基礎(chǔ)知識(shí)開始介紹,然后在此基礎(chǔ)上詳細(xì)闡述C++新增的特性,因此不要求讀者有C語言方面的背景知識(shí)。
《C++ Primer
Plus(第6版)英文版(上、下冊(cè))》可作為高等院校C++課程的教材,也可供初學(xué)者自學(xué)C++時(shí)使用。
作者簡介
作者:(美)PrataStephen Prata在美國加州肯特菲爾得的馬林學(xué)院教授天文、物理和計(jì)算機(jī)科學(xué)。他畢業(yè)于加州理工學(xué)院,在美國加州大學(xué)伯克利分校獲得博士學(xué)位。他單獨(dú)或與他人合作編寫的編程圖書有十多本,其中《New C Primer Plus》獲得了計(jì)算機(jī)出版聯(lián)合會(huì)1990年度最佳“How-to”計(jì)算機(jī)圖書獎(jiǎng),《C++ Primer Plus》獲得了計(jì)算機(jī)出版聯(lián)合會(huì)1991年度最佳“How-to”計(jì)算機(jī)圖書獎(jiǎng)提名。
書籍目錄
上冊(cè)
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
下冊(cè)
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
媒體關(guān)注與評(píng)論
約20年前,我是看Stephen Prata的C Primer Plus學(xué)C語言的。現(xiàn)在Stephen Prata的新書又回到我手上了,這次是C++ Primer Plus(第6版)。對(duì)于系統(tǒng)編程語言來說,除了C++,我們沒有太多其他的選擇。D語言曾經(jīng)有挑戰(zhàn)C++的機(jī)會(huì),但機(jī)會(huì)似乎已經(jīng)消失,我預(yù)期未來GO語言也會(huì)挑戰(zhàn)C++,但不管怎樣,目前C++依然是王者。這本C++ Primer Plus(第6版)是C++圖書中內(nèi)容最新最豐富者。C++是一門很容易誤用的語言,學(xué)習(xí)C++需要鉅細(xì)靡遺。我選擇用這本書復(fù)習(xí)并更新我的C++知識(shí)?!?jiǎng)?chuàng)新工場首席架構(gòu)師 蔡學(xué)鏞C++很有用,但也很難學(xué)。學(xué)C++之難,一是學(xué)習(xí)曲線陡峭,二是容易誤入歧途。C++11標(biāo)準(zhǔn)頒布之后,這個(gè)問題就更嚴(yán)重。C++ Primer Plus 是在市場的多年檢驗(yàn)中脫穎而出的一本名著,它的價(jià)值,正在于降低陡峭的學(xué)習(xí)曲線,并且確保讀者學(xué)到“正確”的C++。——孟巖如果說C++ Primer是C++語言的一本百科全書,講述了C++語言里面“有什么”;那么C++ Primer Plus就是這門語言的一本通識(shí)課本,它實(shí)實(shí)在在地教給程序員如何理解和使用這種內(nèi)容豐富、威力強(qiáng)大的語言。本書最大的特點(diǎn)就是務(wù)實(shí),通過類比、舉例和習(xí)慣多維度的方式,為程序員打下堅(jiān)實(shí)的、使用C++進(jìn)行日常工作的基礎(chǔ)。——高博
編輯推薦
這是一本飲譽(yù)全球十?dāng)?shù)年的C++經(jīng)典教程。蔡學(xué)鏞、孟巖、高博眾多技術(shù)專家力薦第五版中文版暢銷7年,銷量逾70000冊(cè)!最容易上手的C++學(xué)習(xí)教程
圖書封面
圖書標(biāo)簽Tags
無
評(píng)論、評(píng)分、閱讀與下載
C++ Primer Plus(上、下冊(cè)) PDF格式下載