隨筆-17  評論-6  文章-1  trackbacks-0
          C/C++頭文件一覽

          C、傳統 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>

          using namespace std;

          //////////////////////////////////////////////////////////////////////////

          C99 增加

          #include <complex.h>   //復數處理
          #include <fenv.h>    //浮點環境
          #include <inttypes.h>  //整數格式轉換
          #include <stdbool.h>   //布爾環境
          #include <stdint.h>   //整型環境
          #include <tgmath.h>   //通用類型數學宏

          posted on 2006-03-09 16:55 小鐵匠 閱讀(536) 評論(0)  編輯  收藏 所屬分類: c/c++
          主站蜘蛛池模板: 嘉荫县| 南康市| 太仆寺旗| 潼南县| 牡丹江市| 镇赉县| 宁国市| 鹤壁市| 盖州市| 江西省| 桃源县| 田东县| 兖州市| 广安市| 孝昌县| 龙海市| 诸暨市| 金寨县| 青岛市| 哈尔滨市| 静宁县| 泰州市| 鄂尔多斯市| 巴塘县| 古浪县| 肥西县| 涪陵区| 嘉义县| 清水河县| 普定县| 长武县| 海晏县| 江城| 册亨县| 达州市| 宁陵县| 横峰县| 阿鲁科尔沁旗| 肥东县| 丰城市| 兴和县|