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>
<cstring> (string.h)
函式
memchr
memcmp
memcpy
memmove
memset
strcat
strchr
strcmp
strcoll
strcpy
strcspn
strerror
strlen
strncat
strncmp
strncpy
strpbrk
strrchr
strspn
strstr
strtok
strxfrm
型別
size_t
宏常量
NULL
參考
<cstring>
標頭檔案
<cstring> (string.h)
C 字串
此標頭檔案定義了若干個操作
C字串
和陣列的函式。
函式
複製
:
memcpy
複製記憶體塊
(函式)
memmove
移動記憶體塊
(函式)
strcpy
複製字串
(函式)
strncpy
從字串複製字元
(函式)
連線
:
strcat
連線字串
(函式)
strncat
從字串追加字元
(函式)
比較
:
memcmp
比較兩個記憶體塊
(函式)
strcmp
比較兩個字串
(函式)
strcoll
使用 locale 比較兩個字串
(函式)
strncmp
比較兩個字串的字元
(函式)
strxfrm
使用 locale 轉換字串
(函式)
搜尋
:
memchr
在記憶體塊中定位字元
(函式)
strchr
在字串中定位字元的首次出現
(函式)
strcspn
獲取字串中直到指定字元的跨度
(函式)
strpbrk
在字串中定位字元
(函式)
strrchr
在字串中定位字元的最後一次出現
(函式)
strspn
獲取字串中字元集的跨度
(函式)
strstr
定位子字串
(函式)
strtok
將字串分割成標記
(函式)
其他
:
memset
填充記憶體塊
(函式)
strerror
獲取指向錯誤訊息字串的指標
(函式)
strlen
獲取字串長度
(函式)
宏
NULL
空指標
(宏)
型別
size_t
無符號整數型別
(型別)