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>
<ctime> (time.h)
函式
asctime
clock
ctime
difftime
gmtime
localtime
mktime
strftime
time
宏
CLOCKS_PER_SEC
NULL
型別
clock_t
size_t
time_t
struct tm
參考
<ctime>
標頭檔案
<ctime> (time.h)
C 時間庫
該標頭檔案包含用於獲取和操作日期和時間資訊的函式定義。
函式
時間操作
clock
時鐘程式
(函式)
difftime
返回兩個時間之間的差值
(函式)
mktime
將 tm 結構體轉換為 time_t
(函式)
time
獲取當前時間
(函式)
轉換
asctime
將 tm 結構體轉換為字串
(函式)
ctime
將 time_t 值轉換為字串
(函式)
gmtime
將 time_t 轉換為 UTC 時間的 tm
(函式)
localtime
將 time_t 轉換為本地時間的 tm
(函式)
strftime
將時間格式化為字串
(函式)
宏常量
CLOCKS_PER_SEC
每秒的時鐘滴答數
(宏)
NULL
空指標
(宏)
型別
clock_t
時鐘型別
(型別)
size_t
無符號整數型別
(型別)
time_t
時間型別
(型別)
struct tm
時間結構體
(型別)