| 頭文件 | 功能域 |
|---|---|
| <assert.h> | 斷言檢查 |
| <complex.h> | 複數運算 |
| <ctype.h> | 字符分類/轉換 |
| <errno.h> | 錯誤碼定義 |
| <fenv.h> | 浮點環境控制 |
| <float.h> | 浮點型極限常量 |
| <inttypes.h> | 整型格式轉換 |
| <iso646.h> | 運算符替代宏 |
| <limits.h> | 類型極限常量 |
| <locale.h> | 本地化設置 |
| <math.h> | 數學函數 |
| <setjmp.h> | 非局部跳轉 |
| <signal.h> | 信號處理 |
| <stdarg.h> | 可變參數 |
| <stdbool.h> | 布爾類型 |
| <stddef.h> | 標準定義 |
| <stdint.h> | 固定寬度整型 |
| <stdio.h> | 標準 I/O |
| <stdlib.h> | 工具函數/內存管理 |
| <string.h> | 字符串操作 |
| <tgmath.h> | 類型泛型數學宏 |
| <time.h> | 時間日期 |
| <wchar.h> | 寬字符支持 |
| <wctype.h> | 寬字符分類 |
系統級開發核心:<dirent.h> 目錄操作、<fcntl.h> 文件控制、<pthread.h> 線程、<sys/socket.h> 網絡套接字、<unistd.h> 符號常量等。
進階系統編程:<dlfcn.h> 動態鏈接、<sys/mman.h> 內存映射、<sys/ipc.h> 進程間通訊、<sys/shm.h> 共享內存等。
<vector> <list> <deque> <map> <set> <queue> <stack> <bitset><algorithm> <numeric> <functional><iostream> <fstream> <sstream> <iomanip><memory> <typeinfo> <exception> <utility> <limits> <tuple><cstdio> <cstdlib> <cstring> <cmath> 等 18 個 c* 头文件<cstdio> 而非 <stdio.h>),名稱空間 std 更安全sort、find、lower_bound、accumulate、transform<algorithm>、<numeric>,避免重複造輪子收藏本表,編碼時按功能域快速定位所需頭文件,提升開發效率。