
|
《C++ Primer(评注版第4版)》是一本C++语言的教程,不是编程教程本书的例子和习题往往都跟C++本身直接相关。本书的主要内容是精解C++语法(syntax)与语意(semantics),并介绍C++标准库的大部分内容(含STL)。“这本书在全世界C++教学领域的突出和重要,已经无须我再赘言。” 本书适合C++语言的初学者,但不适合编程初学者。作者Stanley B. Lippman(李普曼)在20世纪80年代早期即在C++ 之父Bjarne Stroustrup 领导下开发C++ 编译器,另一作者Josée Lajoie(拉乔伊)曾多年担任C++标准委员会核心语言组主席,他们对这门编程语言的理解与把握非常人可比。 |
Preface Chapter 1 Getting Started (新增评注29 条) 1.1 Writing a Simple C++Program 1.1.1 Compiling and Executing Our Program 1.2 AFitLookat Input/Output 1.2.1 StandardInput andOutputObjects 1.2.2 AProgramthatUses the IOLibrary 1.3 AWordAboutComments 1.4 Control Structures 1.4.1 The whileStatement 1.4.2 The forStatement 1.4.3 The ifStatement 1.4.4 ReadinganUnknownNumberof Inputs 1.5 IntroducingClasses 1.5.1 The Sales_itemClass 1.5.2 AFitLookatMemberFunctio 1.6 The C++Program Part Ⅰ The Basics Chapter 2 Variables and Basic Types(新增评注42 条) 2.1 PrimitiveBuilt-inTypes 2.1.1 IntegralTypes 2.1.2 Floating-PointTypes 2.2 LiteralCotants 2.3 Variables 2.3.1 What Is aVariable? 2.3.2 TheNameof aVariable 2.3.3 DefiningObjects 2.3.4 VariableInitializationRules 2.3.5 Declaratio andDefinitio 2.3.6 Scopeof aName 2.3.7 DefineVariablesWhereTheyAreUsed 2.4 cotQualifier 2.5 References 2.6 TypedefNames 2.7 Enumeratio 2.8 ClassTypes 2.9 Writing Our Own Header Files 2.9.1 DesigningOurOwnHeade 2.9.2 ABrief IntroductiontothePreprocessor Chapter 3 Library Types (新增评注30 条) 3.1 Namespace usingDeclaratio 3.2 Library stringType 3.2.1 Defining and Initializing strings 3.2.2 Reading andWriting strings 3.2.3 Operatio on strings 3.2.4 Dealing with the Characte of a string 3.3 Library vectorType 3.3.1 Defining and Initializing vecto 3.3.2 Operatio on vecto 3.4 IntroducingIterato 3.4.1 IteratorArithmetic 3.5 Library bitsetType 3.5.1 Defining and Initializing bitsets 3.5.2 Operatio on bitsets Chapter 4 Arrays and Pointe (新增评注33 条) 4.1 Arrays 4.1.1 DefiningandInitializingArrays 4.1.2 OperatioonArrays 4.2 IntroducingPointe 4.2.1 What Is aPointer? 4.2.2 DefiningandInitializingPointe 4.2.3 OperatioonPointe 4.2.4 UsingPointe toAccessArrayElements 4.2.5 Pointe and the cotQualifier 4.3 C-StyleCharacterStrings 4.3.1 DynamicallyAllocatingArrays 4.3.2 InterfacingtoOlderCode 4.4 MultidimeionedArrays 4.4.1 Pointe andMultidimeionedArrays Chapter 5 Expressio (新增评注49 条) 5.1 ArithmeticOperato 5.2 Relational andLogicalOperato 5.3 TheBitwiseOperato 5.3.1 Using bitsetObjectsor IntegralValues 5.3.2 Usingthe ShiftOperato for IO 5.4 AssignmentOperato 5.4.1 Assignment IsRightAssociative 5.4.2 AssignmentHasLowPrecedence 5.4.3 CompoundAssignmentOperato 5.5 Increment andDecrementOperato 5.6 TheArrowOperator 5.7 TheConditionalOperator 5.8 The sizeofOperator 5.9 CommaOperator 5.10 EvaluatingCompoundExpressio 5.10.1 Precedence 5.10.2 Associativity 5.10.3 OrderofEvaluation 5.11 The new and deleteExpressio 5.12 TypeConveio 5.12.1 WhenImplicitTypeConveioOccur 5.12.2 TheArithmeticConveio 5.12.3 Other ImplicitConveio 5.12.4 ExplicitConveio 5.12.5 WhenCastsMightBeUseful 5.12.6 NamedCasts 5.12.7 Old-StyleCasts …… Chapter 6 Statements (新增评注29 条) Chapter 7 Functio (新增评注56 条) Chapter 8 The IO Library(新增评注11 条) Part Ⅱ Containe and Algorithms Chapter 9 Sequential Containe (新增评注54 条) Chapter 10 Associative Containe (新增评注22 条) Chapter 11 Generic Algorithms (新增评注18 条) Part Ⅲ Classes and Data Abstraction Chapter 12 Classes 429(新增评注26 条) Chapter 13 Copy Control (新增评注30 条) Chapter 14 Overloaded Operatio and Conveio (新增评注31 条) Part Ⅳ Object-Oriented and Generic Programming Chapter 15 Object-Oriented Programming (新增评注56 条) Chapter 16 Templates and Generic Programming (新增评注31 条) Part Ⅴ Advanced Topics Chapter 17 Tools for Large Programs (新增评注37 条) Chapter 18 Specialized Tools and Techniques (新增评注22 条) Appendix A The Library |
商品评论(0条)