在好例子网,分享、交流、成长!
您当前所在位置:首页C/C++ 开发实例Android手机应用开发 → c++语言导向

c++语言导向

Android手机应用开发

下载此实例
  • 开发语言:C/C++
  • 实例大小:4.33M
  • 下载次数:15
  • 浏览次数:74
  • 发布时间:2022-05-23
  • 实例类别:Android手机应用开发
  • 发 布 人:dushen2
  • 文件格式:.pdf
  • 所需积分:3
 相关标签: C++语言 c++ 语言

实例介绍

【实例简介】c 语言导向

【实例截图】

【核心代码】

Contents
Preface xi
1 The Basics 1
1.1 Introduction ................................................................................. 1
1.2 Programs ..................................................................................... 2
1.3 Functions ..................................................................................... 4
1.4 Types, Variables, and Arithmetic ................................................ 5
1.5 Scope and Lifetime ..................................................................... 9
1.6 Constants ..................................................................................... 9
1.7 Pointers, Arrays, and References ................................................ 11
1.8 Tests ............................................................................................ 14
1.9 Mapping to Hardware ................................................................. 16
1.10 Advice ......................................................................................... 18
2 User-Defined Types 21
2.1 Introduction ................................................................................. 21
2.2 Structures .................................................................................... 22
2.3 Classes ........................................................................................ 23
2.4 Unions ......................................................................................... 25
2.5 Enumerations .............................................................................. 26
2.6 Advice ......................................................................................... 27
vi Contents
3 Modularity 29
3.1 Introduction ................................................................................. 29
3.2 Separate Compilation .................................................................. 30
3.3 Modules (C 20) ........................................................................ 32
3.4 Namespaces ................................................................................. 34
3.5 Error Handling ............................................................................ 35
3.6 Function Arguments and Return Values ..................................... 36
3.7 Advice ......................................................................................... 46
4 Classes 47
4.1 Introduction ................................................................................. 47
4.2 Concrete Types ............................................................................ 48
4.3 Abstract Types ............................................................................ 54
4.4 Virtual Functions ......................................................................... 56
4.5 Class Hierarchies ........................................................................ 57
4.6 Advice ......................................................................................... 63
5 Essential Operations 65
5.1 Introduction ................................................................................. 65
5.2 Copy and Move ........................................................................... 68
5.3 Resource Management ................................................................ 72
5.4 Conventional Operations ............................................................. 74
5.5 Advice ......................................................................................... 77
6 Templates 79
6.1 Introduction ................................................................................. 79
6.2 Parameterized Types ................................................................... 79
6.3 Parameterized Operations ........................................................... 84
6.4 Template Mechanisms ................................................................ 89
6.5 Advice ......................................................................................... 92
7 Concepts and Generic Programming 93
7.1 Introduction ................................................................................. 93
7.2 Concepts ...................................................................................... 94
7.3 Generic Programming ................................................................. 98
7.4 Variadic Templates ...................................................................... 100
7.5 Template Compilation Model ..................................................... 104
7.6 Advice ......................................................................................... 104
vii
8 Library Overview 107
8.1 Introduction ................................................................................. 107
8.2 Standard-Library Components .................................................... 108
8.3 Standard-Library Headers and Namespace ................................. 109
8.4 Advice ......................................................................................... 110
9 Strings and Regular Expressions 111
9.1 Introduction ................................................................................. 111
9.2 Strings ......................................................................................... 111
9.3 String Views ................................................................................ 114
9.4 Regular Expressions .................................................................... 116
9.5 Advice ......................................................................................... 122
10 Input and Output 123
10.1 Introduction ................................................................................. 123
10.2 Output ......................................................................................... 123
10.3 Input ............................................................................................ 125
10.4 I/O State ...................................................................................... 127
10.5 I/O of User-Defined Types .......................................................... 128
10.6 Formatting ................................................................................... 129
10.7 File Streams ................................................................................ 130
10.8 String Streams ............................................................................. 130
10.9 C-style I/O ................................................................................... 131
10.10 File System ................................................................................. 132
10.11 Advice ......................................................................................... 136
11 Containers 137
11.1 Introduction ................................................................................. 137
11.2 vector ........................................................................................... 138
11.3 list ................................................................................................ 142
11.4 map .............................................................................................. 144
11.5 unordered_map ............................................................................ 144
11.6 Container Overview .................................................................... 146
11.7 Advice ......................................................................................... 148
12 Algorithms 149
12.1 Introduction ................................................................................. 149
12.2 Use of Iterators ............................................................................ 150
12.3 Iterator Types .............................................................................. 153
viii Contents
12.4 Stream Iterators ........................................................................... 154
12.5 Predicates .................................................................................... 155
12.6 Algorithm Overview ................................................................... 156
12.7 Concepts (C 20) ....................................................................... 157
12.8 Container Algorithms ................................................................. 160
12.9 Parallel Algorithms ..................................................................... 161
12.10 Advice ......................................................................................... 161
13 Utilities 163
13.1 Introduction ................................................................................. 163
13.2 Resource Management ................................................................ 164
13.3 Range Checking: span ................................................................ 168
13.4 Specialized Containers ................................................................ 170
13.5 Alternatives ................................................................................. 174
13.6 Allocators .................................................................................... 178
13.7 Time ............................................................................................ 179
13.8 Function Adaption ...................................................................... 180
13.9 Type Functions ............................................................................ 181
13.10 Advice ......................................................................................... 185
14 Numerics 187
14.1 Introduction ................................................................................. 187
14.2 Mathematical Functions .............................................................. 188
14.3 Numerical Algorithms ................................................................ 189
14.4 Complex Numbers ...................................................................... 190
14.5 Random Numbers ....................................................................... 191
14.6 Vector Arithmetic ........................................................................ 192
14.7 Numeric Limits ........................................................................... 193
14.8 Advice ......................................................................................... 193
15 Concurrency 195
15.1 Introduction ................................................................................. 195
15.2 Tasks and thread s ........................................................................ 196
15.3 Passing Arguments ...................................................................... 197
15.4 Returning Results ........................................................................ 198
15.5 Sharing Data ................................................................................ 199
15.6 Waiting for Events ...................................................................... 200
15.7 Communicating Tasks ................................................................. 202
15.8 Advice ......................................................................................... 205
ix
16 History and Compatibility 207
16.1 History ........................................................................................ 207
16.2 C Feature Evolution ................................................................ 214
16.3 C/C Compatibility .................................................................. 218
16.4 Bibliography ............................................................................... 222
16.5 Advice ......................................................................................... 225
Index 227

标签: C++语言 c++ 语言

实例下载地址

c++语言导向

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警