4.23文创礼盒,买2个减5元 读书月福利
欢迎光临中图网 请 | 注册
> >>
C++ Primer英文版(第5版)

C++ Primer英文版(第5版)

作者:李普曼
出版社:电子工业出版社出版时间:2013-05-01
开本: 16开 页数: 938
中 图 价:¥89.6(7.0折) 定价  ¥128.0 登录后可看到会员价
加入购物车 收藏
运费6元,满69元免运费
?快递不能达地区使用邮政小包,运费14元起
云南、广西、海南、新疆、青海、西藏六省,部分地区快递不可达
本类五星书更多>

C++ Primer英文版(第5版) 版权信息

C++ Primer英文版(第5版) 本书特色

这本久负盛名的c++经典教程,时隔八年之久,终迎来史无前例的重大升级。除令全球无数程序员从中受益,甚至为之迷醉的--c++大师stanleyb. lippman的丰富实践经验,c++标准委员会原负责人joséelajoie对c++标准的深入理解,以及c++先驱barbara e.moo在c++教学方面的真知灼见外,更是基于全新的c++11标准进行了全面而彻底的内容更新。非常难能可贵的是,书中所有示例均全部采用c++11标准改写,这在经典升级版中极其罕见--充分体现了c++语言的重大进展及其全面实践。书中丰富的教学辅助内容、醒目的知识点提示,以及精心组织的编程示范,让《c++primer英文版(第5版)》这本书在c++领域的权威地位更加不可动摇。无论是初学者入门,或是中、高级程序员提升,《c++primer英文版(第5版)》均为不容置疑的首选。

C++ Primer英文版(第5版) 内容简介

  *新标准c++11发布,距上一版本已10年;《c++ primer英文版(第5版)》是唯一持续更新的全球顶级c++读本。   多位深孚众望的大师组合堪称绝无仅有;经过前四个版本积累,第5版的体例堪称完美。   这一版本作者历时3年完成,极力避免在原版上升级,而是将c++ 11的新特性真正融入各章节;更将所有代码示例用c++ 11的简化写法完成,而不是仅单独增加内容。 推荐购买: c++ primer中文版(第5版)(顶级畅销书重磅升级 全面采用*新 c++ 11标准) essential c++中文版 (c++捷径 首屈一指的必读经典) effective c++ more effective c++

C++ Primer英文版(第5版) 目录

preface xxiii
chapter 1 getting started
1.1 writing a simple c++program
1.1.1 compiling and executing our program
1.2 afirstlookat input/output
1.3 awordaboutcomments
1.4 flowofcontrol
1.4.1 the whilestatement
1.4.2 the forstatement
1.4.3 readinganunknownnumberof inputs
1.4.4 the ifstatement
1.5 introducingclasses
1.5.1 the sales_itemclass
1.5.2 afirstlookatmemberfunctions
1.6 thebookstoreprogram
chaptersummary
definedterms
part i the basics
chapter 2 variables and basic types
2.1 primitivebuilt-intypes
2.1.1 arithmetictypes
2.1.2 typeconversions
2.1.3 literals
2.2 variables
2.2.1 variabledefinitions
2.2.2 variabledeclarations anddefinitions
2.2.3 identifiers
2.2.4 scopeof aname
2.3 compoundtypes
2.3.1 references
2.3.2 pointers
vii
viii contents
2.3.3 understandingcompoundtypedeclarations
2.4 constqualifier
2.4.1 references to const
2.4.2 pointers and const
2.4.3 top-level const
2.4.4 constexprandconstantexpressions
2.5 dealingwithtypes
2.5.1 typealiases
2.5.2 the autotypespecifier
2.5.3 the decltypetypespecifier
2.6 definingourowndatastructures
2.6.1 defining the sales_datatype
2.6.2 using the sales_dataclass
2.6.3 writing our own header files
chaptersummary
definedterms
chapter 3 strings, vectors, and arrays
3.1 namespace usingdeclarations
3.2 library stringtype
3.2.1 defining and initializing strings
3.2.2 operations on strings
3.2.3 dealing with the characters in a string
3.3 library vectortype
3.3.1 defining and initializing vectors
3.3.2 adding elements to a vector
3.3.3 other vectoroperations
3.4 introducingiterators
3.4.1 usingiterators
3.4.2 iteratorarithmetic
3.5 arrays
3.5.1 definingandinitializingbuilt-inarrays
3.5.2 accessingtheelementsof anarray
3.5.3 pointers andarrays
3.5.4 c-stylecharacterstrings
3.5.5 interfacingtooldercode
3.6 multidimensionalarrays
chaptersummary
definedterms
chapter 4 expressions
4.1 fundamentals
4.1.1 basicconcepts
4.1.2 precedenceandassociativity
4.1.3 orderofevaluation
4.2 arithmeticoperators
4.3 logical andrelationaloperators
contents ix
4.4 assignmentoperators
4.5 increment anddecrementoperators
4.6 thememberaccessoperators
4.7 theconditionaloperator
4.8 thebitwiseoperators
4.9 the sizeofoperator
4.10 commaoperator
4.11 typeconversions
4.11.1 thearithmeticconversions
4.11.2 other implicitconversions
4.11.3 explicitconversions
4.12 operatorprecedencetable
chaptersummary
definedterms
chapter 5 statements
5.1 simple statements
5.2 statementscope
5.3 conditional statements
5.3.1 the ifstatement
5.3.2 the switchstatement
5.4 iterativestatements
5.4.1 the whilestatement
5.4.2 traditional forstatement
5.4.3 range forstatement
5.4.4 the do whilestatement
5.5 jumpstatements
5.5.1 the breakstatement
5.5.2 the continuestatement
5.5.3 the gotostatement
5.6 tryblocks andexceptionhandling
5.6.1 a throwexpression
5.6.2 the tryblock
5.6.3 standardexceptions
chaptersummary
definedterms
chapter 6 functions
6.1 functionbasics
6.1.1 localobjects
6.1.2 functiondeclarations
6.1.3 separatecompilation
6.2 argumentpassing
6.2.1 passingargumentsbyvalue
6.2.2 passingargumentsbyreference
6.2.3 constparametersandarguments
6.2.4 arrayparameters
x contents
6.2.5 main:handlingcommand-lineoptions
6.2.6 functionswithvaryingparameters
6.3 return types and the returnstatement
6.3.1 functionswithnoreturnvalue
6.3.2 functionsthatreturnavalue
6.3.3 returningapointer toanarray
6.4 overloadedfunctions
6.4.1 overloadingandscope
6.5 features forspecializeduses
6.5.1 defaultarguments
6.5.2 inline and constexprfunctions
6.5.3 aids for debugging
6.6 functionmatching
6.6.1 argumenttypeconversions
6.7 pointers tofunctions
chaptersummary
definedterms
chapter 7 classes
7.1 definingabstractdatatypes
7.1.1 designing the sales_dataclass
7.1.2 defining the revised sales_dataclass
7.1.3 definingnonmemberclass-relatedfunctions
7.1.4 constructors
7.1.5 copy,assignment, anddestruction
7.2 accesscontrol andencapsulation
7.2.1 friends
7.3 additionalclassfeatures
7.3.1 classmembersrevisited
7.3.2 functions that return *this
7.3.3 classtypes
7.3.4 friendshiprevisited
7.4 classscope
7.4.1 namelookupandclassscope
7.5 constructorsrevisited
7.5.1 constructor initializerlist
7.5.2 delegatingconstructors
7.5.3 theroleof thedefaultconstructor
7.5.4 implicitclass-typeconversions
7.5.5 aggregateclasses
7.5.6 literalclasses
7.6 staticclassmembers
chaptersummary
definedterms
contents xi
part ii the c++ library
chapter 8 the io library
8.1 the ioclasses
8.1.1 nocopyorassignfor ioobjects
8.1.2 conditionstates
8.1.3 managingtheoutputbuffer
8.2 file input and output
8.2.1 using file stream objects
8.2.2 file modes
8.3 stringstreams
8.3.1 using an istringstream
8.3.2 using ostringstreams
chaptersummary
definedterms
chapter 9 sequential containers
9.1 overviewof the sequentialcontainers
9.2 containerlibraryoverview
9.2.1 iterators
9.2.2 containertypemembers
9.2.3 begin and endmembers
9.2.4 definingandinitializingacontainer
9.2.5 assignment and swap
9.2.6 containersizeoperations
9.2.7 relationaloperators
9.3 sequentialcontaineroperations
9.3.1 addingelements toasequentialcontainer
9.3.2 accessingelements
9.3.3 erasingelements
9.3.4 specialized forward_listoperations
9.3.5 resizingacontainer
9.3.6 containeroperationsmayinvalidateiterators
9.4 how a vectorgrows
9.5 additional stringoperations
9.5.1 other ways to construct strings
9.5.2 other ways to change a string
9.5.3 stringsearchoperations
9.5.4 the comparefunctions
9.5.5 numericconversions
9.6 containeradaptors
chaptersummary
definedterms
xii contents
chapter 10 generic algorithms
10.1 overview
10.2 afirstlookat thealgorithms
10.2.1 read-onlyalgorithms
10.2.2 algorithmsthatwritecontainerelements
10.2.3 algorithmsthatreordercontainerelements
10.3 customizingoperations
10.3.1 passingafunctiontoanalgorithm
10.3.2 lambdaexpressions
10.3.3 lambdacapturesandreturns
10.3.4 bindingarguments
10.4 revisiting iterators
10.4.1 insert iterators
10.4.2 iostream iterators
10.4.3 reverse iterators
10.5 structureofgenericalgorithms
10.5.1 thefive iteratorcategories
10.5.2 algorithmparameterpatterns
10.5.3 algorithmnamingconventions
10.6 container-specificalgorithms
chaptersummary
definedterms
chapter 11 associative containers
11.1 usinganassociativecontainer
11.2 overviewof theassociativecontainers
11.2.1 defininganassociativecontainer
11.2.2 requirements onkeytype
11.2.3 the pairtype
11.3 operations onassociativecontainers
11.3.1 associativecontainer iterators
11.3.2 addingelements
11.3.3 erasingelements
11.3.4 subscripting a map
11.3.5 accessingelements
11.3.6 awordtransformationmap
11.4 theunorderedcontainers
chaptersummary
definedterms
chapter 12 dynamicmemory
12.1 dynamicmemoryandsmartpointers
12.1.1 the shared_ptrclass
12.1.2 managingmemorydirectly
12.1.3 using shared_ptrs with new
12.1.4 smartpointers andexceptions
12.1.5 unique_ptr
contents xiii
12.1.6 weak_ptr
12.2 dynamicarrays
12.2.1 newandarrays
12.2.2 the allocatorclass
12.3 usingthelibrary:atext-queryprogram
12.3.1 designof thequeryprogram
12.3.2 definingthequeryprogramclasses
chaptersummary
definedterms
part iii tools for class authors
chapter 13 copy control
13.1 copy,assign, anddestroy
13.1.1 thecopyconstructor
13.1.2 thecopy-assignmentoperator
13.1.3 thedestructor
13.1.4 theruleofthree/five
13.1.5 using = default
13.1.6 preventingcopies
13.2 copycontrol andresourcemanagement
13.2.1 classesthatactlikevalues
13.2.2 definingclassesthatactlikepointers
13.3 swap
13.4 acopy-controlexample
13.5 classesthatmanagedynamicmemory
13.6 movingobjects
13.6.1 rvaluereferences
13.6.2 moveconstructor andmoveassignment
13.6.3 rvaluereferencesandmemberfunctions
chaptersummary
definedterms
chapter 14 overloaded operations and conversions
14.1 basicconcepts
14.2 input andoutputoperators
14.2.1 overloading the output operator <<
14.2.2 overloading the input operator >>
14.3 arithmetic andrelationaloperators
14.3.1 equalityoperators
14.3.2 relationaloperators
14.4 assignmentoperators
14.5 subscriptoperator
14.6 increment anddecrementoperators
14.7 memberaccessoperators
14.8 function-calloperator
xiv contents
14.8.1 lambdasarefunctionobjects
14.8.2 library-definedfunctionobjects
14.8.3 callable objects and function
14.9 overloading,conversions, andoperators
14.9.1 conversionoperators
14.9.2 avoidingambiguousconversions
14.9.3 functionmatchingandoverloadedoperators
chaptersummary
definedterms
chapter 15 object-oriented programming
15.1 oop:anoverview
15.2 definingbaseandderivedclasses
15.2.1 definingabaseclass
15.2.2 definingaderivedclass
15.2.3 conversions andinheritance
15.3 virtualfunctions
15.4 abstractbaseclasses
15.5 accesscontrol andinheritance
15.6 classscopeunder inheritance
15.7 constructors andcopycontrol
15.7.1 virtualdestructors
15.7.2 synthesizedcopycontrol andinheritance
15.7.3 derived-classcopy-controlmembers
15.7.4 inheritedconstructors
15.8 containers andinheritance
15.8.1 writing a basketclass
15.9 textqueriesrevisited
15.9.1 anobject-orientedsolution
15.9.2 the query_base and queryclasses
15.9.3 thederivedclasses
15.9.4 the evalfunctions
chaptersummary
definedterms
chapter 16 templates and generic programming
16.1 definingatemplate
16.1.1 functiontemplates
16.1.2 classtemplates
16.1.3 templateparameters
16.1.4 membertemplates
16.1.5 controlling instantiations
16.1.6 efficiency and flexibility
16.2 templateargumentdeduction
16.2.1 conversions andtemplatetypeparameters
16.2.2 function-templateexplicitarguments
16.2.3 trailing return types and type transformation
contents xv
16.2.4 functionpointers andargumentdeduction
16.2.5 templateargumentdeductionandreferences
16.2.6 understanding std::move
16.2.7 forwarding
16.3 overloadingandtemplates
16.4 variadictemplates
16.4.1 writingavariadicfunctiontemplate
16.4.2 packexpansion
16.4.3 forwardingparameterpacks
16.5 template specializations
chaptersummary
definedterms
part iv advanced topics
chapter 17 specialized library facilities
17.1 the tupletype
17.1.1 defining and initializing tuples
17.1.2 using a tuple toreturnmultiplevalues
17.2 the bitsettype
17.2.1 defining and initializing bitsets
17.2.2 operations on bitsets
17.3 regularexpressions
17.3.1 usingtheregularexpressionlibrary
17.3.2 thematchandregex iteratortypes
17.3.3 usingsubexpressions
17.3.4 using regex_replace
17.4 randomnumbers
17.4.1 random-numberengines anddistribution
17.4.2 otherkinds ofdistributions
17.5 the iolibraryrevisited
17.5.1 formattedinput andoutput
17.5.2 unformattedinput/outputoperations
17.5.3 randomaccess toastream
chaptersummary
definedterms
chapter 18 tools for large programs
18.1 exceptionhandling
18.1.1 throwinganexception
18.1.2 catchinganexception
18.1.3 function tryblocks andconstructors
18.1.4 the noexceptexceptionspecification
18.1.5 exceptionclasshierarchies
18.2 namespaces
18.2.1 namespacedefinitions
xvi contents
18.2.2 usingnamespacemembers
18.2.3 classes,namespaces,andscope
18.2.4 overloadingandnamespaces
18.3 multiple andvirtual inheritance
18.3.1 multiple inheritance
18.3.2 conversions andmultiplebaseclasses
18.3.3 classscopeundermultiple inheritance
18.3.4 virtual inheritance
18.3.5 constructors andvirtual inheritance
chaptersummary
definedterms
chapter 19 specialized tools and techniques
19.1 controlling memory allocation
19.1.1 overloading new and delete
19.1.2 placement newexpressions
19.2 run-timetypeidentification
19.2.1 the dynamic_castoperator
19.2.2 the typeidoperator
19.2.3 usingrtti
19.2.4 the type_infoclass
19.3 enumerations
19.4 pointer toclassmember
19.4.1 pointers todatamembers
19.4.2 pointers tomemberfunctions
19.4.3 usingmemberfunctions ascallableobjects
19.5 nestedclasses
19.6 union:aspace-savingclass
19.7 localclasses
19.8 inherentlynonportablefeatures
19.8.1 bit-fields
19.8.2 volatilequalifier
19.8.3 linkage directives: extern “c”
chaptersummary
definedterms
appendix a the library
a.1 librarynames andheaders
a.2 abrieftourof thealgorithms
a.2.1 algorithms tofindanobject
a.2.2 otherread-onlyalgorithms
a.2.3 binarysearchalgorithms
a.2.4 algorithmsthatwritecontainerelements
a.2.5 partitioningandsortingalgorithms
a.2.6 generalreorderingoperations
a.2.7 permutationalgorithms
a.2.8 setalgorithms forsortedsequences
contents xvii
a.2.9 minimumandmaximumvalues
a.2.10 numericalgorithms
a.3 randomnumbers
a.3.1 randomnumberdistributions
a.3.2 randomnumberengines
index



new features in c++
2.1.1 long longtype
2.2.1 list initialization
2.3.2 nullptrliteral
2.4.4 constexprvariables
2.5.1 typealiasdeclarations
2.5.2 the autotypespecifier
2.5.3 the decltypetypespecifier
2.6.1 in-class initializers
3.2.2 using auto or decltype fortypeabbreviation
3.2.3 range forstatement
3.3 defining a vector of vectors
3.3.1 list initialization for vectors
3.4.1 container cbegin and cendfunctions
3.5.3 library begin and endfunctions
3.6 using auto or decltype to simplifydeclarations
4.2 roundingrules fordivision
4.4 assignment fromabracedlistofvalues
4.9 sizeofappliedtoaclassmember
5.4.3 range forstatement
6.2.6 library initializer_listclass
6.3.2 list initializingareturnvalue
6.3.3 declaring a trailing return type
6.3.3 using decltype to simplify return type declarations
6.5.2 constexprfunctions
7.1.4 using = default togenerateadefaultconstructor
7.3.1 in-class initializers formembersofclasstype
7.5.2 delegatingconstructors
7.5.6 constexprconstructors
8.2.1 using strings for file names
9.1 the array and forward_listcontainers
9.2.3 container cbegin and cendfunctions
9.2.4 list initializationforcontainers
9.2.5 container nonmember swapfunctions
9.3.1 return type for container insertmembers
9.3.1 container emplacemembers
xix
xx new features in c++
9.4 shrink_to_fit
9.5.5 numeric conversion functions for strings
10.3.2 lambdaexpressions
10.3.3 trailing return type in lambda expressions
10.3.4 the library bindfunction
11.2.1 list initializationof anassociativecontainer
11.2.3 list initializing pairreturntype
11.3.2 list initialization of a pair
11.4 theunorderedcontainers
12.1 smartpointers
12.1.1 the shared_ptrclass
12.1.2 list initializationofdynamicallyallocatedobjects
12.1.2 autoanddynamicallocation
12.1.5 the unique_ptrclass
12.1.6 the weak_ptrclass
12.2.1 range for doesn‘t apply to dynamically allocatedarrays
12.2.1 list initializationofdynamicallyallocatedarrays
12.2.1 autocan’tbeusedtoallocateanarray
12.2.2 allocator::constructcanuseanyconstructor
13.1.5 using = default forcopy-controlmembers
13.1.6 using = delete topreventcopyingclassobjects
13.5 movinginsteadofcopyingclassobjects
13.6.1 rvaluereferences
13.6.1 the library movefunction
13.6.2 moveconstructor andmoveassignment
13.6.2 move constructors usually should be noexcept
13.6.2 moveiterators
13.6.3 referencequalifiedmemberfunctions
14.8.3 the functionclasstemplate
14.9.1 explicitconversionoperators
15.2.2 overridespecifier forvirtualfunctions
15.2.2 preventing inheritance by defining a class as final
15.3 override and final specifiers for virtual functions
15.7.2 deletedcopycontrol andinheritance
15.7.4 inheritedconstructors
16.1.2 declaringatemplatetypeparameteras afriend
16.1.2 templatetypealiases
16.1.3 defaulttemplatearguments fortemplatefunctions
16.1.5 explicitcontrolof instantiation
16.2.3 template functions and trailing return types
16.2.5 referencecollapsingrules
16.2.6 static_cast fromanlvaluetoanrvalue
16.2.7 the library forwardfunction
16.4 variadictemplates
16.4 the sizeof...operator
16.4.3 variadictemplates andforwarding
new features in c++11 xxi
17.1 the library tupleclasstemplate
17.2.2 new bitsetoperations
17.3 theregularexpressionlibrary
17.4 therandomnumberlibrary
17.5.1 floating-point formatcontrol
18.1.4 the noexceptexceptionspecifier
18.1.4 the noexceptoperator
18.2.1 inlinenamespaces
18.3.1 inheritedconstructors andmultiple inheritance
19.3 scoped enums
19.3 specifying the type used to hold an enum
19.3 forward declarations for enums
19.4.3 the library mem_fnclasstemplate
19.6 unionmembersofclasstypes

展开全部

C++ Primer英文版(第5版) 相关资料

  在c++的著作当中,这本书的地位是无可替代的。要成为合格的c++开发者,就必须掌握c++标准库,而要掌握c++标准库,这本书可以说是不二法门。这本书最了不起的地方,就在于面对庞大复杂的c++标准库,能够抽丝剥茧,化难为易,引导读者循序渐进,深入浅出地掌握c++标准库。 ——孟岩 stl堪称是c++泛型的极致实现,里面不但封装了最高效的算法,也用到了c++泛型最高级的技术。对我来说,学习stl并不仅仅是学习stl的用法和特性,而是学习stl的设计方法。本书作为stl入门级的经典图书,虽然很夸张地有上千页,但是读起并没有那么吃力,因为里面有很多的代码示例,从而使得本书更容易阅读。本书在内容编排上也类似于c++速查手册,可以让你很容易地查到stl以及c++11的相关知识点。 ——陈皓(@左耳朵耗子) 大有所悟,相见恨晚,对stl编程思想有绝对的裨益。 交叉索引的协助十分便利,c++学习之路必备秘籍之一。 ——china-pub读者“qinhanlei” 无论如何c++程序员必须有的一本书。一个不会c++标准库的程序员不是一个真正的c++程序员,不是一个完整的c++程序员。 ——china-pub读者“ttklboy” 本书详尽地介绍了c++标准库,即可作为自学教材又可作为查阅手册,讲解通俗、清晰、详细,对于学习和使用c++,本书为必备图书。 ——亚马逊中国读者“jzzlee”

C++ Primer英文版(第5版) 作者简介

  Stanley B. Lippman,目前是微软公司 Visual C++ 团队的架构师。他从1984年开始在贝尔实验室与C++的设计者Bjarne Stroustrup一起从事C++的设计与开发。他在迪士尼和梦工厂从事动画制作,还担任过JPL的高级顾问。   Josée Lajoie,曾经是IBM加拿大研究中心C/C++编译器开发团队的成员,在ISO C++标准委员会工作了7年,担任过ISO核心语言工作组的主席和C++ Report杂志的专栏作家。   Barbara E. Moo,拥有25年软件经验的独立咨询顾问。在AT&T,她与Stroustrup、Lippman一起管理过复杂的C++开发项目。

商品评论(0条)
暂无评论……
书友推荐
本类畅销
编辑推荐
返回顶部
中图网
在线客服