
C++标准库
文章平均质量分 77
liuyongkanglinux
这个作者很懒,什么都没留下…
展开
-
C++标准库 Error handling cassert cerrno
该系列博文主要参考自 cppreference.com 和 cplusplus.com由于博主水平有限,内容仅供参考cassert 其中只有一个宏函数assert#ifdef NDEBUG#define assert(condition) ((void)0)#else#define assert(condition) /*implementation def原创 2013-05-04 16:59:58 · 1084 阅读 · 0 评论 -
C++标准库 Utilities library <cstdlib>
该系列博文主要参考自 cppreference.com 和 cplusplus.com由于博主水平有限,内容仅供参考cstdlib这个头文件比较复杂,有各种东西。String conversion (字符串转换)atof atoi atol atoll(c++11)函数原型:double atof(const char *str)原创 2013-05-02 10:21:46 · 1043 阅读 · 0 评论 -
C++标准库 Numeric limits climits cfloat cstdint
该系列博文主要参考自 cppreference.com 和 cplusplus.com由于博主水平有限,内容仅供参考climits该头文件中定义了许多宏CHAR_BIT 一个byte的bit数MB_LEN_MAX一个多字节字符所占的最大字节数CHAR_MIN, SCHAR_MIN, SHRT_MIN, INT_MIN, LONG_MIN, LLO原创 2013-05-10 20:10:31 · 1446 阅读 · 0 评论 -
C++标准库 Utilities library typeinfo
该系列博文主要参考自 cppreference.com 和 cplusplus.com由于博主水平有限,内容仅供参考typeinfo该头文件下有三个class,分别是type_info, bad_cast 和 bad_typeid。type_info为操作符typeid的返回类型,bad_cast和bad_typeid均为exception类型。name原创 2013-05-02 19:06:22 · 984 阅读 · 0 评论