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>
<cwchar> (wchar.h)
函式
btowc
fgetwc
fgetws
fputwc
fputws
fwide
fwprintf
fwscanf
getwc
getwchar
mbrlen
mbrtowc
mbsinit
mbsrtowcs
putwc
putwchar
swprintf
swscanf
ungetwc
vfwprintf
C++11
vfwscanf
C++11
vswprintf
C++11
vswscanf
vwprintf
C++11
vwscanf
wcrtomb
wcscat
wcschr
wcscmp
wcscoll
wcscpy
wcscspn
wcsftime
wcslen
wcsncat
wcsncmp
wcsncpy
wcspbrk
wcsrchr
wcsrtombs
wcsspn
wcsstr
wcstod
C++11
wcstof
wcstok
wcstol
C++11
wcstold
C++11
wcstoll
wcstoul
C++11
wcstoull
wcsxfrm
wctob
wmemchr
wmemcmp
wmemcpy
wmemmove
wmemset
wprintf
wscanf
型別
mbstate_t
size_t
struct tm
wchar_t
wint_t
宏常量
NULL
WCHAR_MAX
WCHAR_MIN
WEOF
參考
<cwchar>
標頭檔案
<cwchar> (wchar.h)
寬字元
此標頭檔案定義了多個用於處理
C 寬字串
的函式。
函式
輸入/輸出:
(主要是
<cstdio>
函式的寬字元版本)
fgetwc
從流中獲取寬字元
(函式)
fgetws
從流中獲取寬字串
(函式)
fputwc
向流中寫入寬字元
(函式)
fputws
向流中寫入寬字串
(函式)
fwide
流定向
(函式)
fwprintf
將格式化資料寫入流
(函式)
fwscanf
從流中讀取格式化資料
(函式)
getwc
從流中獲取寬字元
(函式)
getwchar
從 stdin 獲取寬字元
(函式)
putwc
向流中寫入寬字元
(函式)
putwchar
向 stdout 寫入寬字元
(函式)
swprintf
將格式化資料寫入寬字串
(函式)
swscanf
從字串中讀取格式化資料
(函式)
ungetwc
將寬字元退回到流中
(函式)
vfwprintf
將可變引數列表中的格式化資料寫入流
(函式)
vfwscanf
從流中讀取格式化資料到可變引數列表
(函式)
vswprintf
將可變引數列表中的格式化資料寫入到有大小限制的緩衝區
(函式)
vswscanf
從寬字串中讀取格式化資料到可變引數列表
(函式)
vwprintf
將可變引數列表中的格式化資料列印到 stdout
(函式)
vwscanf
將格式化資料讀入可變引數列表
(函式)
wprintf
將格式化資料列印到 stdout
(函式)
wscanf
從 stdin 讀取格式化資料
(函式)
通用工具:
(
<cstdlib>
函式的寬字元版本)
wcstod
將寬字串轉換為 double
(函式)
wcstof
將寬字串轉換為 float
(函式)
wcstol
將寬字串轉換為 long 整數
(函式)
wcstold
將寬字串轉換為 long double
(函式)
wcstoll
將寬字串轉換為 long long 整數
(函式)
wcstoul
將寬字串轉換為 unsigned long 整數
(函式)
wcstoull
將寬字串轉換為 unsigned long long 整數
(函式)
字元/字串轉換:
(主要是
<cstdlib>
函式的擴充套件版本)
btowc
將單位元組字元轉換為寬字元
(函式)
mbrlen
獲取多位元組字元的長度
(函式)
mbrtowc
將多位元組序列轉換為寬字元
(函式)
mbsinit
檢查是否為初始轉換狀態
(函式)
mbsrtowcs
將多位元組字串轉換為寬字串
(函式)
wcrtomb
將寬字元轉換為多位元組序列
(函式)
wctob
將寬字元轉換為單位元組
(函式)
wcsrtombs
將寬字串轉換為多位元組字串
(函式)
字串:
(
<cstring>
函式的寬字元版本)
wcscat
連線寬字串
(函式)
wcschr
在寬字串中定位字元的首次出現
(函式)
wcscmp
比較兩個字串
(函式)
wcscoll
使用 locale 比較兩個寬字串
(函式)
wcscpy
複製寬字串
(函式)
wcscspn
獲取寬字串中直到指定字元的跨度
(函式)
wcslen
獲取寬字串長度
(函式)
wcsncat
從寬字串追加字元
(函式)
wcsncmp
比較兩個寬字串的字元
(函式)
wcsncpy
從寬字串複製字元
(函式)
wcspbrk
在寬字串中定位字元
(函式)
wcsrchr
在寬字串中定位字元的最後一次出現
(函式)
wcsspn
獲取寬字串中字元集的跨度
(函式)
wcsstr
在寬字串中定位子字串
(函式)
wcstok
將寬字串拆分為標記
(函式)
wcsxfrm
使用 locale 轉換寬字串
(函式)
wmemchr
在寬字元塊中定位字元
(函式)
wmemcmp
比較兩個寬字元塊
(函式)
wmemcpy
複製寬字元塊
(函式)
wmemmove
移動寬字元塊
(函式)
wmemset
填充寬字元陣列
(函式)
時間:
(
<ctime>
函式的寬字元版本)
wcsftime
將時間格式化為寬字串
(函式)
型別
mbstate_t
多位元組轉換狀態
(型別)
size_t
無符號整數型別
(型別)
struct tm
時間結構
(型別)
wchar_t
寬字元
(型別)
wint_t
寬整型型別
(型別)
宏常量
NULL
空指標
(宏)
WCHAR_MAX
wchar_t 的最大值
(常量)
WCHAR_MIN
wchar_t 的最小值
(常量)
WEOF
寬字元檔案結束符
(常量)