标准库的组成:
前言就到此为止。从最宏观的层面上看,C++标准库由十个部分组成:语言支持、诊断、通用工具、字符串、本地化、容器、迭代器、通用算法、数值算法和I/O。
头文件组成:
C++ 标准库一共包含 33 个C++ 头文件:
<algorithm>, <bitset>, <complex>, <deque>, <exception>, <fstream>, <functional>,
<iomanip>, <ios>, <iosfwd>, <iostream>, <istream>, <iterator>, <limits>, <list>,
<locale>, <map>, <memory>, <new>, <numeric>, <ostream>, <queue>, <set>, <sstream>,
<stack>, <stdexcept>, <streambuf>, <string>, <strstream>, <typeinfo>, <utility>,
<valarray>, <vector>
<iomanip>, <ios>, <iosfwd>, <iostream>, <istream>, <iterator>, <limits>, <list>,
<locale>, <map>, <memory>, <new>, <numeric>, <ostream>, <queue>, <set>, <sstream>,
<stack>, <stdexcept>, <streambuf>, <string>, <strstream>, <typeinfo>, <utility>,
<valarray>, <vector>
和 18 个 C的标准库头文件:
<cassert>, <cctype>, <cerrno>, <cfloat>, <ciso646>, <climits>, <clocale>, <cmath>,
<csetjmp>, <csignal>, <cstdarg>, <cstddef>, <cstdio>, <cstdlib>, <cstring>, <ctime>,
<cwchar>, <cwctype>
<csetjmp>, <csignal>, <cstdarg>, <cstddef>, <cstdio>, <cstdlib>, <cstring>, <ctime>,
<cwchar>, <cwctype>
类型定义(Types):<cstddef>
实现特征(Implementation properties ):<limits> , <climits> , <cfloat>
启动与终止(Start and termination ):<cstdlib>
动态内存管理(Dynamic memory management ):<new>
类型认证(Type identification ):<typeinfo>
异常处理(Exception handling ):<exception>
其它运行时支持(Other runtime support ):<cstdarg>, <csetjmp> , <ctime> , <csignal> , <cstdlib>
实现特征(Implementation properties ):<limits> , <climits> , <cfloat>
启动与终止(Start and termination ):<cstdlib>
动态内存管理(Dynamic memory management ):<new>
类型认证(Type identification ):<typeinfo>
异常处理(Exception handling ):<exception>
其它运行时支持(Other runtime support ):<cstdarg>, <csetjmp> , <ctime> , <csignal> , <cstdlib>
c语言标准库api:http://swordair.com/docs/c-language-standard-library/
常见问题:
fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
项目\属性\配置属性\清单工具\输入和输出\嵌入清单:原来是“是”,改成“否”。
项目\属性\配置属性\清单工具\输入和输出\嵌入清单:原来是“是”,改成“否”。