C++常用的#include頭文件總結(jié)
本文詳細(xì)羅列了C++所包含的頭文件的名稱及作用說明,比較適合初學(xué)者了解一下,幾乎每一個C++文件的開始都要#include ,可大部分人都沒有去關(guān)注#include 后面是什么,對照本文的說明相信會對大家理解C++結(jié)構(gòu)多少有些幫助。
#include <deque> //STL 雙端隊列容器
#include <exception> //異常處理類
#include <fstream> //文件輸入/輸出
#include <functional> //STL 定義運算函數(shù)(代替運算符)
#include <limits> //定義各種數(shù)據(jù)類型最值常量
#include <list> //STL 線性列表容器
#include <map> //STL 映射容器
#include <iomanip> //參數(shù)化輸入/輸出
#include <ios> //基本輸入/輸出支持
#include <sstream> //基于字符串的流
#include <stack> //STL 堆棧容器
#include <algorithm> //STL 通用算法
#include <bitset> //STL 位集容器
#include <cctype> //字符處理
#include <stdexcept> //標(biāo)準(zhǔn)異常類
#include <streambuf> //底層輸入/輸出支持
#include <string> //字符串類
#include <utility> //STL 通用模板類
#include <vector> //STL 動態(tài)數(shù)組容器
#include <iosfwd> //輸入/輸出系統(tǒng)使用的前置聲明
#include <cerrno> //定義錯誤碼
#include <clocale> //定義本地化函數(shù)
#include <cmath> //定義數(shù)學(xué)函數(shù)
#include <complex> //復(fù)數(shù)類
#include <cstdio> //定義輸入/輸出函數(shù)
#include <cstdlib> //定義雜項函數(shù)及內(nèi)存分配函數(shù)
#include <cstring> //字符串處理
#include <ctime> //定義關(guān)于時間的函數(shù)
#include <iostream> //數(shù)據(jù)流輸入/輸出
#include <istream> //基本輸入流
#include <ostream> //基本輸出流
#include <queue> //STL 隊列容器
#include <set> //STL 集合容器
#include <cwchar> //寬字符處理及輸入/輸出
#include <cwctype> //寬字符分類
#include <complex.h> //復(fù)數(shù)處理
#include <fenv.h> //浮點環(huán)境
#include <inttypes.h> //整數(shù)格式轉(zhuǎn)換
#include <stdbool.h> //布爾環(huán)境
#include <stdint.h> //整型環(huán)境
#include <tgmath.h> //通用類型數(shù)學(xué)宏
讀者可對照中文解釋加以理解,并在C++程序開發(fā)中快速的記住它們,為以后編程提供便利。
上一篇:C++遺傳算法類文件實例分析
欄 目:C語言
本文標(biāo)題:C++常用的#include頭文件總結(jié)
本文地址:http://www.jygsgssxh.com/a1/Cyuyan/3530.html
您可能感興趣的文章
- 04-02c語言沒有round函數(shù) round c語言
- 01-10深入理解C++中常見的關(guān)鍵字含義
- 01-10使用C++實現(xiàn)全排列算法的方法詳解
- 01-10c++中inline的用法分析
- 01-10用C++實現(xiàn)DBSCAN聚類算法
- 01-10全排列算法的非遞歸實現(xiàn)與遞歸實現(xiàn)的方法(C++)
- 01-10C++大數(shù)模板(推薦)
- 01-10淺談C/C++中的static與extern關(guān)鍵字的使用詳解
- 01-10深入C/C++浮點數(shù)在內(nèi)存中的存儲方式詳解
- 01-10深入解析Linux下\r\n的問題


閱讀排行
本欄相關(guān)
- 04-02c語言函數(shù)調(diào)用后清空內(nèi)存 c語言調(diào)用
- 04-02func函數(shù)+在C語言 func函數(shù)在c語言中
- 04-02c語言的正則匹配函數(shù) c語言正則表達(dá)
- 04-02c語言用函數(shù)寫分段 用c語言表示分段
- 04-02c語言中對數(shù)函數(shù)的表達(dá)式 c語言中對
- 04-02c語言編寫函數(shù)冒泡排序 c語言冒泡排
- 04-02c語言沒有round函數(shù) round c語言
- 04-02c語言分段函數(shù)怎么求 用c語言求分段
- 04-02C語言中怎么打出三角函數(shù) c語言中怎
- 04-02c語言調(diào)用函數(shù)求fibo C語言調(diào)用函數(shù)求
隨機閱讀
- 01-10delphi制作wav文件的方法
- 01-10SublimeText編譯C開發(fā)環(huán)境設(shè)置
- 08-05dedecms(織夢)副欄目數(shù)量限制代碼修改
- 01-11ajax實現(xiàn)頁面的局部加載
- 01-10使用C語言求解撲克牌的順子及n個骰子
- 01-10C#中split用法實例總結(jié)
- 04-02jquery與jsp,用jquery
- 08-05DEDE織夢data目錄下的sessions文件夾有什
- 08-05織夢dedecms什么時候用欄目交叉功能?
- 01-11Mac OSX 打開原生自帶讀寫NTFS功能(圖文


