C++ Primer英文版第5版.docx

上传人:b****5 文档编号:3049809 上传时间:2022-11-17 格式:DOCX 页数:16 大小:33.40KB
下载 相关 举报
C++ Primer英文版第5版.docx_第1页
第1页 / 共16页
C++ Primer英文版第5版.docx_第2页
第2页 / 共16页
C++ Primer英文版第5版.docx_第3页
第3页 / 共16页
C++ Primer英文版第5版.docx_第4页
第4页 / 共16页
C++ Primer英文版第5版.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

C++ Primer英文版第5版.docx

《C++ Primer英文版第5版.docx》由会员分享,可在线阅读,更多相关《C++ Primer英文版第5版.docx(16页珍藏版)》请在冰豆网上搜索。

C++ Primer英文版第5版.docx

C++Primer英文版第5版

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

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

基本信息

作者:

(美)李普曼(Lippman,S.B.)(美)拉乔伊(Lajoie,J.)(美)默Moo,B.E.)

出版社:

电子工业出版社

ISBN:

9787121200380

上架时间:

2013-4-23

出版日期:

2013年5月

开本:

16开

页码:

964

版次:

5-1

所属分类:

计算机>软件与程序设计>C++>C++

内容简介

计算机书籍

  这本久负盛名的C++经典教程,时隔八年之久,终迎来史无前例的重大升级。

除令全球无数程序员从中受益,甚至为之迷醉的——C++大师StanleyB.Lippman的丰富实践经验,C++标准委员会原负责人JoséeLajoie对C++标准的深入理解,以及C++先驱BarbaraE.Moo在C++教学方面的真知灼见外,更是基于全新的C++11标准进行了全面而彻底的内容更新。

非常难能可贵的是,《C++Primer英文版(第5版)》所有示例均全部采用C++11标准改写,这在经典升级版中极其罕见——充分体现了C++语言的重大进展极其全面实践。

书中丰富的教学辅助内容、醒目的知识点提示,以及精心组织的编程示范,让这本书在C++领域的权威地位更加不可动摇。

无论是初学者入门,或是中、高级程序员提升,本书均为不容置疑的首选。

目录

《c++primer英文版(第5版)》

preface

chapter1gettingstarted1

1.1writingasimplec++program2

1.1.1compilingandexecutingourprogram3

1.2afirstlookatinput/output5

1.3awordaboutcomments9

1.4flowofcontrol11

1.4.1thewhilestatement11

1.4.2theforstatement13

1.4.3readinganunknownnumberofinputs14

1.4.4theifstatement17

1.5introducingclasses19

1.5.1thesales_itemclass20

1.5.2afirstlookatmemberfunctions23

1.6thebookstoreprogram.24

chaptersummary26

definedterms26

partithebasics29

chapter2variablesandbasictypes31

2.1primitivebuilt-intypes32

2.1.1arithmetictypes32

2.1.2typeconversions35

2.1.3literals38

2.2variables41

2.2.1variabledefinitions41

2.2.2variabledeclarationsanddefinitions44

2.2.3identifiers46

2.2.4scopeofaname48

2.3compoundtypes50

2.3.1references50

2.3.2pointers52

2.3.3understandingcompoundtypedeclarations57

2.4constqualifier59

2.4.1referencestoconst61

2.4.2pointersandconst62

2.4.3top-levelconst63

2.4.4constexprandconstantexpressions65

2.5dealingwithtypes67

2.5.1typealiases67

2.5.2theautotypespecifier68

2.5.3thedecltypetypespecifier70

2.6definingourowndatastructures72

2.6.1definingthesales_datatype72

2.6.2usingthesales_dataclass74

2.6.3writingourownheaderfiles76

chaptersummary78

definedterms78

chapter3strings,vectors,andarrays81

3.1namespaceusingdeclarations82

3.2librarystringtype84

3.2.1definingandinitializingstrings84

3.2.2operationsonstrings85

3.2.3dealingwiththecharactersinastring90

3.3libraryvectortype96

3.3.1definingandinitializingvectors97

3.3.2addingelementstoavector100

3.3.3othervectoroperations102

3.4introducingiterators106

3.4.1usingiterators106

3.4.2iteratorarithmetic111

3.5arrays113

3.5.1definingandinitializingbuilt-inarrays113

3.5.2accessingtheelementsofanarray116

3.5.3pointersandarrays117

3.5.4c-stylecharacterstrings122

3.5.5interfacingtooldercode124

3.6multidimensionalarrays125

chaptersummary131

definedterms131

chapter4expressions133

4.1fundamentals134

4.1.1basicconcepts134

4.1.2precedenceandassociativity136

4.1.3orderofevaluation137

4.2arithmeticoperators139

4.3logicalandrelationaloperators141

4.4assignmentoperators144

4.5incrementanddecrementoperators147

4.6thememberaccessoperators150

4.7theconditionaloperator151

4.8thebitwiseoperators152

4.9thesizeofoperator156

4.10commaoperator157

4.11typeconversions159

4.11.1thearithmeticconversions159

4.11.2otherimplicitconversions161

4.11.3explicitconversions162

4.12operatorprecedencetable166

chaptersummary168

definedterms168

chapter5statements171

5.1simplestatements172

5.2statementscope174

5.3conditionalstatements174

5.3.1theifstatement175

5.3.2theswitchstatement178

5.4iterativestatements183

5.4.1thewhilestatement183

5.4.2traditionalforstatement185

5.4.3rangeforstatement187

5.4.4thedowhilestatement189

5.5jumpstatements190

5.5.1thebreakstatement190

5.5.2thecontinuestatement191

5.5.3thegotostatement192

5.6tryblocksandexceptionhandling193

5.6.1athrowexpression193

5.6.2thetryblock194

5.6.3standardexceptions197

chaptersummary199

definedterms199

chapter6functions201

6.1functionbasics202

6.1.1localobjects204

6.1.2functiondeclarations206

6.1.3separatecompilation207

6.2argumentpassing208

6.2.1passingargumentsbyvalue209

6.2.2passingargumentsbyreference210

6.2.3constparametersandarguments212

6.2.4arrayparameters214

6.2.5main:

handlingcommand-lineoptions218

6.2.6functionswithvaryingparameters220

6.3returntypesandthereturnstatement222

6.3.1functionswithnoreturnvalue223

6.3.2functionsthatreturnavalue223

6.3.3returningapointertoanarray228

6.4overloadedfunctions230

6.4.1overloadingandscope234

6.5featuresforspecializeduses236

6.5.1defaultarguments236

6.5.2inlineandconstexprfunctions238

6.5.3aidsfordebugging240

6.6functionmatching242

6.6.1argumenttypeconversions245

6.7pointerstofunctions247

chaptersummary251

definedterms251

chapter7classes

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 判决书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1