目录
小 结...................................................................................................................................................507
练 习 题..............................................................................................................................................508
第16章 ANSI C++标准语法补充..........................................................................................................511
16.1 逻辑型BOOL................................................................................................................................511
16.2 命名空间NAMESPACE.................................................................................................................512
16.2.1
命名空间的定义
.................................................................................................................512
16.2.2
空间中成员的访问
.............................................................................................................514
16.3 修饰符EXPLICIT..........................................................................................................................516
16.4 修饰符MUTABLE.........................................................................................................................517
16.5 RTTI与TYPEID............................................................................................................................518
16.6 强制类型转换.............................................................................................................................520
16.6.1 static_cast
运算符
................................................................................................................520
16.6.2 dynamic_cast
运算符
...........................................................................................................522
16.6.3 const_cast
运算符
................................................................................................................523
16.6.4 reinterpret_cast
运算符
........................................................................................................523
小 结...................................................................................................................................................524
附录A ASCII码表...............................................................................................................................526
ASCII控制字符......................................................................................................................................527
附录B 常用库函数.............................................................................................................................528
表
B-1
运行期库
...............................................................................................................................528
表
B-2
运行期库头文件
..................................................................................................................529
表
B-3
标准
C++
库头文件
.............................................................................................................530
表
B-4 IO
流的新旧头文件对比
.....................................................................................................531
表
B-5
数学函数
<math.h>.............................................................................................................531
表
B-6 C
标准库
<stdlib.h>..............................................................................................................532
表
B-7
字符串函数
<string.h>........................................................................................................534
表
B-8
时间函数
<time.h>
与
<sys/timeb.h>...................................................................................536
表
B-9
可变参数
<stdarg.h>...........................................................................................................538
表
B-10
断言
<assert.h>
与
<crtdbg.h>...........................................................................................538
参考文献.............................................................................................................................................540