我收藏的一些,僅供參考
傳統 C++
#include<assert.h> //設定插入點
#include <ctype.h> //字元處理
#include <errno.h> //定義錯誤碼
#include <float.h> //浮點數處理
#include <fstream.h> //檔案輸入/輸出
#include <iomanip.h> //引數化輸入/輸出
#include<iostream.h> //資料流輸入/輸出
#include<limits.h> //定義各種資料型別最值常量
#include<locale.h> //定義本地化函式
#include <math.h> //定義數學函式
#include <stdio.h> //定義輸入/輸出函式
#include<stdlib.h> //定義雜項函式及記憶體分配函式
#include <string.h> //字串處理
#include<strstrea.h> //基於陣列的輸入/輸出
#include<time.h> //定義關於時間的函式
#include <wchar.h> //寬字元處理及輸入/輸出
#include <wctype.h> //寬字元分類
標準 C++ (同上的不再註釋)
#include <algorithm> //STL通用演算法
#include <bitset> //STL位集容器
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex> //複數類
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque> //STL雙端佇列容器
#include <exception> //異常處理類
#include <fstream>
#include <functional> //STL定義運算函式(代替運算子)
#include <limits>
#include <list> //STL線性列表容器
#include <map> //STL 對映容器
#include <iomanip>
#include <ios> //基本輸入/輸出支援
#include<iosfwd> //輸入/輸出系統使用的前置宣告
#include <iostream>
#include <istream> //基本輸入流
#include <ostream> //基本輸出流
#include <queue> //STL佇列容器
#include <set> //STL 集合容器
#include <sstream> //基於字串的流
#include <stack> //STL堆疊容器
#include <stdexcept> //標準異常類
#include <streambuf> //底層輸入/輸出支援
#include <string> //字串類
#include <utility> //STL通用模板類
#include <vector> //STL動態陣列容器
#include <cwchar>
#include <cwctype>
#include <complex.h> //複數處理#include <fenv.h> //浮點環境#include <inttypes.h> //整數格式轉換#include <stdbool.h> //布林環境#include <stdint.h> //整型環境#include <tgmath.h> //通用型別數學宏
我收藏的一些,僅供參考
傳統 C++
#include<assert.h> //設定插入點
#include <ctype.h> //字元處理
#include <errno.h> //定義錯誤碼
#include <float.h> //浮點數處理
#include <fstream.h> //檔案輸入/輸出
#include <iomanip.h> //引數化輸入/輸出
#include<iostream.h> //資料流輸入/輸出
#include<limits.h> //定義各種資料型別最值常量
#include<locale.h> //定義本地化函式
#include <math.h> //定義數學函式
#include <stdio.h> //定義輸入/輸出函式
#include<stdlib.h> //定義雜項函式及記憶體分配函式
#include <string.h> //字串處理
#include<strstrea.h> //基於陣列的輸入/輸出
#include<time.h> //定義關於時間的函式
#include <wchar.h> //寬字元處理及輸入/輸出
#include <wctype.h> //寬字元分類
標準 C++ (同上的不再註釋)
#include <algorithm> //STL通用演算法
#include <bitset> //STL位集容器
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex> //複數類
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque> //STL雙端佇列容器
#include <exception> //異常處理類
#include <fstream>
#include <functional> //STL定義運算函式(代替運算子)
#include <limits>
#include <list> //STL線性列表容器
#include <map> //STL 對映容器
#include <iomanip>
#include <ios> //基本輸入/輸出支援
#include<iosfwd> //輸入/輸出系統使用的前置宣告
#include <iostream>
#include <istream> //基本輸入流
#include <ostream> //基本輸出流
#include <queue> //STL佇列容器
#include <set> //STL 集合容器
#include <sstream> //基於字串的流
#include <stack> //STL堆疊容器
#include <stdexcept> //標準異常類
#include <streambuf> //底層輸入/輸出支援
#include <string> //字串類
#include <utility> //STL通用模板類
#include <vector> //STL動態陣列容器
#include <cwchar>
#include <cwctype>
#include <complex.h> //複數處理#include <fenv.h> //浮點環境#include <inttypes.h> //整數格式轉換#include <stdbool.h> //布林環境#include <stdint.h> //整型環境#include <tgmath.h> //通用型別數學宏