cplusplus
.com
教程
參考
文章
論壇
C++
教程
參考
文章
論壇
參考
C 庫
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
容器
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
輸入/輸出
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
多執行緒
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
其他
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<cstdlib> (stdlib.h)
函式
C++11
_Exit
abort
abs
C++11
at_quick_exit
atexit
atof
atoi
atol
C++11
atoll
bsearch
calloc
div
exit
free
getenv
labs
ldiv
C++11
llabs
C++11
lldiv
malloc
mblen
mbstowcs
mbtowc
qsort
C++11
quick_exit
rand
realloc
srand
strtod
C++11
strtof
strtol
C++11
strtold
C++11
strtoll
strtoul
C++11
strtoull
system
wcstombs
wctomb
函式 (非標準)
itoa
型別
div_t
ldiv_t
C++11
lldiv_t
size_t
宏常量
EXIT_FAILURE
EXIT_SUCCESS
MB_CUR_MAX
NULL
RAND_MAX
參考
<cstdlib>
標頭檔案
<cstdlib> (stdlib.h)
C 標準通用工具庫
該標頭檔案定義了一些通用函式,包括動態記憶體管理、隨機數生成、與環境通訊、整數算術、搜尋、排序和轉換。
函式
字串轉換
atof
將字串轉換為 double
(函式)
atoi
將字串轉換為整型
(函式)
atol
將字串轉換為長整型
(函式)
atoll
將字串轉換為長長整型
(函式)
strtod
將字串轉換為 double
(函式)
strtof
將字串轉換為 float
(函式)
strtol
將字串轉換為長整型
(函式)
strtold
將字串轉換為 long double
(函式)
strtoll
將字串轉換為長長整型
(函式)
strtoul
將字串轉換為無符號長整型
(函式)
strtoull
將字串轉換為無符號長長整型
(函式)
偽隨機序列生成
rand
生成隨機數
(函式)
srand
初始化隨機數生成器
(函式)
動態記憶體管理
calloc
分配並零初始化陣列
(函式)
free
釋放記憶體塊
(函式)
malloc
分配記憶體塊
(函式)
realloc
重新分配記憶體塊
(函式)
環境
abort
中止當前程序
(函式)
atexit
設定退出時執行的函式
(函式)
at_quick_exit
設定快速退出時執行的函式
(函式)
exit
終止呼叫程序
(函式)
getenv
獲取環境變數字串
(函式)
quick_exit
快速終止呼叫程序
(函式)
system
執行系統命令
(函式)
_Exit
終止呼叫程序
(函式)
搜尋和排序
bsearch
在陣列中進行二分搜尋
(函式)
qsort
對陣列元素進行排序
(函式)
整數算術
abs
絕對值
(函式)
div
整數除法
(函式)
labs
絕對值
(函式)
ldiv
整數除法
(函式)
llabs
絕對值
(函式)
lldiv
整數除法
(函式)
多位元組字元
mblen
獲取多位元組字元的長度
(函式)
mbtowc
將多位元組序列轉換為寬字元
(函式)
wctomb
將寬字元轉換為多位元組序列
(函式)
多位元組字串
mbstowcs
將多位元組字串轉換為寬字串
(函式)
wcstombs
將寬字串轉換為多位元組字串
(函式)
宏常量
EXIT_FAILURE
失敗終止程式碼
(宏)
EXIT_SUCCESS
成功終止程式碼
(宏)
MB_CUR_MAX
多位元組字元的最大大小
(宏)
NULL
空指標
(宏)
RAND_MAX
rand 返回的最大值
(宏)
型別
div_t
div 返回的結構體
(型別)
ldiv_t
ldiv 返回的結構體
(型別)
lldiv_t
lldiv 返回的結構體
(型別)
size_t
無符號整數型別
(型別)