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>
<string>
類模板
basic_string
char_traits
類
string
C++11
u16string
C++11
u32string
wstring
函式
C++11
stod
C++11
stof
C++11
stoi
C++11
stol
C++11
stold
C++11
stoll
C++11
stoul
C++11
stoull
C++11
to_string
C++11
to_wstring
參考
<string>
標頭檔案
<string>
字串
此標頭檔案引入了字串型別、字元特徵和一組轉換函式
類模板
basic_string
通用字串類
(類模板)
char_traits
字元特徵
(類模板)
類例項化
string
字串類
(類)
u16string
16位字元的字串
(類)
u32string
32位字元的字串
(類)
wstring
寬字串
(類)
函式
從字串轉換
stoi
將字串轉換為整數
(函式模板)
stol
將字串轉換為長整數
(函式模板)
stoul
將字串轉換為無符號整數
(函式模板)
stoll
將字串轉換為長長整數
(函式模板)
stoull
將字串轉換為無符號長長整數
(函式模板)
stof
將字串轉換為單精度浮點數
(函式模板)
stod
將字串轉換為雙精度浮點數
(函式模板)
stold
將字串轉換為長雙精度浮點數
(函式模板)
轉換為字串
to_string
將數值轉換為字串
(函式)
to_wstring
將數值轉換為寬字串
(函式)
範圍訪問
begin
指向起始位置的迭代器
(函式模板)
end
指向末尾的迭代器
(函式模板)