C語言頭文件大全參考模板_第1頁
C語言頭文件大全參考模板_第2頁
C語言頭文件大全參考模板_第3頁
C語言頭文件大全參考模板_第4頁
C語言頭文件大全參考模板_第5頁
已閱讀5頁,還剩1頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、標準C語言頭文件ISO C標準定義的頭文件(24項) <assert.h> 驗證程序斷言<complex.h> 支持復數算術運算<ctype.h> 字符類型<errno.h> 出錯碼<fenv.h> 浮點環境<float.h> 浮點常量<inttypes.h> 整型格式轉換<iso646.h> 替代關系操作符宏 <limits.h> 實現常量<locale.h> 局部類別<math.h>

2、; 數學常量<setjmp.h> 非局部goto<signal.h> 信號<stdarg.h> 可變參數表<stdbool.h> 布爾類型和值<stddef.h> 標準定義<stdint.h> 整型<stdio.h> 標準I/O庫<stdlib.h> 實用程序庫函數<string.h> 字符串操作<tgmath.h> 通用類型數學宏<time.h> 時間和

3、日期<wchar.h> 寬字符支持<wctype.h> 寬字符分類和映射支持POSIX標準定義的必須的頭文件(26項) <dirent.h> 目錄項 <fcntl.h> 文件控制<fnmatch.h> 文件名匹配類型<glob.h> 路徑名模式匹配類型<grp.h> 組文件<netdb.h> 網絡數據庫操作<pwd.h> 口令文件<regex.h> 正則表達式<tar.h>&

4、#160;tar歸檔值<termios.h> 終端I/O<unistd.h> 符號常量<utime.h> 文件時間<wordexp.h> 字擴展類型<arpa/inet.h> Internet定義<net/if.h> 套接字本地接口<netinet/in.h> Internet地址族 <netinet/tcp.h> 傳輸控制協議<sys/mman.h> 內存管理聲明<sys/select.h>&#

5、160;select函數 <sys/socket.h> 套接字接口<sys/stat.h> 文件狀態<sys/times.h> 進程時間<sys/types.h> 基本系統數據類型<sys/un.h> UNIX域套接字定義<sys/utsname.h>系統名<sys/wait.h> 進程控制POSIX標準定義的XSI擴展頭文件(26項) <cpio.h> cpio歸檔值<dlfcn.h> 動態鏈接<fmtmsg.

6、h> 消息顯示結構<ftw.h> 文件樹漫游<iconv.h> 代碼集轉換實用程序<langinfo.h> 語言信息常量<libgen.h> 模式匹配函數定義<monetary.h> 貨幣類型<ndbm.h> 數據庫操作<nl_types.h> 消息類別<poll.h> 輪詢函數<search.h> 搜索表<strings.h> 字符串操作<syslog.

7、h> 系統出錯日志記錄<ucontext.h> 用戶上下文<ulimit.h> 用戶限制<utmpx.h> 用戶帳戶數據庫<sys/ipc.h> IPC<sys/msg.h> 消息隊列<sys/resource.h> 資源操作<sys/sem.h> 信號量<sys/shm.h> 共享存儲<sys/statvfs.h> 文件系統信息<sys/time.h> 時間類型<sys/t

8、imeb.h> 附加的時間 <sys/uio.h> 矢量I/O操作POSIX標準定義的可選頭文件(8項) <aio.h> 異步I/O<mqueue.h> 消息隊列<pthread.h> 線程<sched.h> 執行調度<semaphore.h> 信號量<spawn.h> 實時spawn接口<stropts.h> XSI STREAMS接口<trace.h> 時間跟蹤1 / 6標準 C+ 語言頭

9、文件(54個其中16個用于構建STL,3個為附加非必須)<algorithm>STL通用算法<bitset> STL位集容器<cassert> 用于在程序運行時執行斷言<cctype> 字符處理<cerrno> 錯誤碼<cfloat> 用于測試浮點類型屬性<ciso646> ISO646變體字符集<climits> 測試整數類型屬性<clocale> 本地化函數<cmath>數學函數<complex>復數類<csetj

10、mp> 執行非內部的goto語句<csignal> 信號<cstdarg> 訪問參數數量變化的函數<cstddef> 用于定義實用的類型和宏<cstdio> 輸入/輸出<cstdlib> 雜項函數及內存分配<cstring> 字符串<ctime>時間<cwchar> 寬字符處理及輸入/輸出 <cwctype> 寬字符分類<deque> STL雙端隊列容器<exception> 異常處理類<fstream>

11、文件流<functional> STL函數對象<iomanip> 參數化輸入/輸出<ios>基本輸入/輸出支持<iosfwd> 輸入/輸出前置聲明<iostream> 數據流輸入/輸出<istream> 基本輸入流<iterator> 遍歷序列的類<limits> 各種數據類型最值常量<list>STL線性列表容器<locale> 國際化支持<map> STL映射容器<memory> 專用內存分配器<new> 基本內存分配和釋放 

12、<numeric> 通用的數字操作 <ostream> 基本輸出流<queue>STL 隊列容器<set> STL 集合容器<sstream> 基于字符串的流<stack> STL 堆棧容器<stdexcept> 標準異常類<streambuf> iostream 的緩沖區類<string> 字符串類<strstream> 非內存字符序列的流類<typeinfo>運行時類型標識<utility> STL 通用模板類<valarray&g

13、t; 支持值數組的類和模版類<vector> STL 動態數組容器標準C+附加的頭文件(3個)非必須<hash_map><hash_set><slist>轉義字符 意義 ASCII碼值(十進制)a 響鈴(BEL) 007b 退格(BS) 008f 換頁(FF) 012n 換行(LF) 010r 回車(CR) 013t 水平制表(HT) 009v 垂直制表(VT) 011 反斜杠 092' 單引號字符 039" 雙引號字符 0340 空字符(NULL) 000ddd 任意字符 三位八進制xhh 任意字符 二位十六進制Th

14、e Standard C+ library consists of 51 required headers.This implementation also includes three additional headers,<hash_map>,<hash_set>,and <slist>,not required by the C+ Standard, for a total of 54 headers.Of these 54 headers,16 constitute the Standard Template Library, or STL.Thes

15、e are indicated below with the notation <algorithm> - (STL) for defining numerous templates that implement useful algorithms<bitset> - for defining a template class that administers sets of bits<complex> - for defining a template class that supports complex arithmetic <deque>

16、 - (STL) for defining a template class that implements a deque container<exception> - for defining several functions that control exception handling <fstream> - for defining several iostreams template classes that manipulate exteral files<functional>- (STL) for defining several tem

17、plates that help construct predicates for the templates defined in <algorithm> and <numeric> <hash_map> - (STL) for defining template classes that implement hashed associative containers that map keys to values <hash_set> - (STL) for defining template classes that implement h

18、ashed associative containers <iomanip> - for declaring several iostreams manipulators that take an argument <ios> - for defining the template class that serves as the base for many iostreams classes <iosfwd> - for declaring several iostreams template classes before they are necessa

19、rily defined <iostream> - for declaring the iostreams objects that manipulate the standard streams <istream> - for defining the template class that performs extractions <iterator> - (STL) for defining several templates that help define and manipulate iterators <limits> - for

20、testing numeric type properties <list> - (STL) for defining a template class that implements a doubly linked list container <locale> - for defining several classes and templates that control locale-specific behavior, as in the iostreams classes <map>- (STL) for defining template cl

21、asses that implement associative containers that map keys to values <memory> - (STL) for defining several templates that allocate and free storage for various container classes <new> - for declaring several functions that allocate and free storage <numeric> - (STL) for defining sev

22、eral templates that implement useful numeric functions <ostream> - for defining the template class that performs insertions <queue> - (STL) for defining a template class that implements a queue container <set> - (STL) for defining template classes that implement associative contain

23、ers <slist> - (STL) for defining a template class that implements a singly linked list container <sstream> - for defining several iostreams template classes that manipulate string containers<stack> - (STL) for defining a template class that implements a stack container <stdexcep

24、t> - for defining several classes useful for reporting exceptions <streambuf> - for defining template classes that buffer iostreams operations <string> - for defining a template class that implements a string container <strstream> - for defining several iostreams classes that ma

25、nipulate in-memory character sequences <typeinfo> - for defining class type_info, the result of the typeid operator <utility> - (STL) for defining several templates of general utility <valarray> - for defining several classes and template classes that support value-oriented arrays

26、<vector> - (STL) for defining a template class that implements a vector container 新的C標準庫 <cassert> - for enforcing assertions when functions execute <cctype> - for classifying characters <cerrno> - for testing error codes reported by library functions <cfloat> - for tes

27、ting floating-point type properties <ciso646> - for programming in ISO 646 variant character sets <climits> - for testing integer type properties <clocale> - for adapting to different cultural conventions <cmath> - for computing common mathematical functions <csetjmp> -

28、 for executing nonlocal goto statements <csignal> - for controlling various exceptional conditions <cstdarg> - for accessing a varying number of arguments <cstddef> - for defining several useful types and macros <cstdio> - for performing input and output <cstdlib> - for

29、 performing a variety of operations <cstring> - for manipulating several kinds of strings <ctime> - for converting between various time and date formats <cwchar> - for manipulating wide streams and several kinds of strings <cwctype> - for classifying wide characters 舊的C標準庫 &l

30、t;assert.h> - for enforcing assertions when functions execute <ctype.h> - for classifying characters <errno.h> - for testing error codes reported by library functions <float.h> - for testing floating-point type properties <iso646.h> - for programming in ISO 646 variant cha

31、racter sets <limits.h> - for testing integer type properties <locale.h> - for adapting to different cultural conventions <math.h> - for computing common mathematical functions <setjmp.h> - for executing nonlocal goto statements <signal.h> - for controlling various exceptional conditions <stdarg.h> - for accessing a varying number of arguments <stdd

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論