本文彙整 C、傳統 C++ 及標準 C++ 常用標頭檔,並標註用途,供開發者快速查閱。
<assert.h> 斷言插入點<ctype.h> 字元處理<errno.h> 錯誤碼定義<float.h> 浮點數處理<fstream.h> 檔案輸入/輸出<iomanip.h> 參數化 I/O<iostream.h> 資料流 I/O<limits.h> 資料型別極值常數<locale.h> 本地化函式<math.h> 數學函式<stdio.h> 輸入/輸出函式<stdlib.h> 雜項函式與記憶體分配<string.h> 字串處理<strstrea.h> 陣列基礎 I/O<time.h> 時間函式<wchar.h> 寬字元處理與 I/O<wctype.h> 寬字元分類<algorithm> STL 通用演算法<bitset> STL 位元集容器<cctype>、<cerrno>、<clocale>、<cmath>、<complex> 複數類別<cstdio>、<cstdlib>、<cstring>、<ctime><deque> STL 雙端佇列<exception> 異常處理類別<fstream>、<functional> STL 運算函式物件<limits>、<list> STL 線性串列<map> STL 映射容器<iomanip>、<ios> 基礎 I/O 支援、<iosfwd> I/O 前置宣告<iostream>、<istream> 輸入流、<ostream> 輸出流<queue> STL 佇列、<set> STL 集合<sstream> 字串流、<stack> STL 堆疊<stdexcept> 標準異常類別、<streambuf> 底層 I/O<string> 字串類別、<utility> STL 通用模板<vector> STL 動態陣列<cwchar>、<cwctype>using namespace std;<complex.h> 複數處理<fenv.h> 浮點環境<inttypes.h> 整數格式轉換<stdbool.h> 布林環境<stdint.h> 整型環境<tgmath.h> 通用型別數學巨集