天天看點

常用的C++頭檔案

#include <deque>      //STL 雙端隊列容器
#include <exception>    //異常處理類
#include <fstream>    //檔案輸入/輸出
#include <functional>   //STL 定義運算函數(代替運算符)
#include <limits>     //定義各種資料類型最值常量
#include <list>      //STL 線性清單容器
#include <map>       //STL 映射容器
#include <iomanip>    //參數化輸入/輸出
#include <ios>       //基本輸入/輸出支援
#include <sstream>     //基于字元串的流
#include <stack>      //STL 堆棧容器
#include <algorithm>    //STL 通用算法
#include <bitset>     //STL 位集容器
#include <cctype>     //字元處理
#include <stdexcept>    //标準異常類
#include <streambuf>    //底層輸入/輸出支援
#include <string>     //字元串類
#include <utility>     //STL 通用模闆類
#include <vector>     //STL 動态數組容器
#include <iosfwd>     //輸入/輸出系統使用的前置聲明
#include <cerrno>     //定義錯誤碼
#include <clocale>    //定義本地化函數
#include <cmath>     //定義數學函數
#include <complex>     //複數類
#include <cstdio>     //定義輸入/輸出函數
#include <cstdlib>    //定義雜項函數及記憶體配置設定函數
#include <cstring>    //字元串處理
#include <ctime>     //定義關于時間的函數
#include <iostream>    //資料流輸入/輸出
#include <istream>     //基本輸入流
#include <ostream>     //基本輸出流
#include <queue>      //STL 隊列容器
#include <set>       //STL 集合容器
#include <cwchar> //寬字元處理及輸入/輸出
#include <cwctype>     //寬字元分類
#include <complex.h>   //複數處理
#include <fenv.h>    //浮點環境
#include <inttypes.h>  //整數格式轉換
#include <stdbool.h>   //布爾環境
#include <stdint.h>   //整型環境
#include <tgmath.h>   //通用類型數學宏      

轉載于:https://www.cnblogs.com/fallinlovewithlife/p/3432743.html