Cplusplus 简明教程
C++ Standard Library
C++ 标准库可分为两部分 −
The C++ Standard Library can be categorized into two parts −
-
The Standard Function Library − This library consists of general-purpose,stand-alone functions that are not part of any class. The function library is inherited from C.
-
The Object Oriented Class Library − This is a collection of classes and associated functions.
C++ 标准库也合并了所有 C 标准库以及对支持类型安全的少量添加和更改。
Standard C++ Library incorporates all the Standard C libraries also, with small additions and changes to support type safety.
The Standard Function Library
标准函数库分为以下类别 −
The standard function library is divided into the following categories −
-
I/O,
-
String and character handling,
-
Mathematical,
-
Time, date, and localization,
-
Dynamic allocation,
-
Miscellaneous,
-
Wide-character functions,
The Object Oriented Class Library
C++ 标准面向对象库定义了一组用于提供对包括 I/O、字符串和数字处理在内的许多常见活动的扩展类支持的类。此库包括以下各项 −
Standard C++ Object Oriented Library defines an extensive set of classes that provide support for a number of common activities, including I/O, strings, and numeric processing. This library includes the following −
-
The Standard C++ I/O Classes
-
The String Class
-
The Numeric Classes
-
The STL Container Classes
-
The STL Algorithms
-
The STL Function Objects
-
The STL Iterators
-
The STL Allocators
-
The Localization library
-
Exception Handling Classes
-
Miscellaneous Support Library