C 的#include
標題檔 | 說明 | 程式函數 |
標準輸入/輸出函數 | cin - console in 讀取鍵盤輸入資料 cin >> cout - console out 螢幕輸出 cout << endl - 輸出時跳行 string 同C ctype 同C iomanip 串列型態資料處理函數 setw - 設定輸出字元長度 system(“PAUSE”) 暫停等按任意鍵結束 | |
字串函數 | strlen - string lenght 字串長度 strcpy - string copy 複製字串 strcmp - string compare 比較字串 strcat - string catenation 串接字串 | |
字元測試與轉換函數 | isprint - 是否為可列印字元(ASCII碼 32~126) isgraph - 是否為可顯示字元(ASCII碼 33~126) isalnum - 是否為英文字母或數字字元(A~Z, a~z, 0~9) isalpha - 是否為英文字母(A~Z, a~z) isdigit - 是否為數字字元(0~9) isxdigit - 是否為16進位數字字元(0~9, A~F) islower - 是否為小寫英文字母(a~z) isupper - 是否為大寫英文字母(A~Z) isspace - 是否為空白字元(ASCII碼 32) ispunct - 是否為標點符號字元 iscntrl - 是否為控制字元 tolower - 轉成小寫英文字母 toupper - 轉成大寫英文字母 | |
串列型態資料處理函數 | setw - 設定輸出字元的最小長度 | |
數值函數 | rand - 亂數函數(0 ~ RAND_MAX) srand - 指定亂數函數種子數 time - 自午夜算起的秒數 sin - 正弦函數(徑度) cos - 餘弦函數(徑度) tan - 正切函數(徑度) exp - 指數函數 log - 對數 loge函數 log10 - 對數 log10函數 pow - 冪次方 sqrt - 平方根 ceil - 小數進位 floor - 切除小數 fabs - 絕對值 | |
stdio.h | 輸出入 | getc,putchar,gets,pus,fclose,feof,fgets,fputs,fread, fopen,fwirte,scanf,rewind,abs,printf,getchar
|
轉換數值函數 | atof - 轉換為浮點數值 atoi - 轉換為整數值 atol - 轉換為長整數值 log - 對數 loge 函數 log10 - 對數 log10 函數 pow - 冪次方 srand - 指定亂數函數種子數 itoa,rand,random,randomize io.h 輸出入(檔案) eof,open,close,filelength,write,read conio.h DOS 視窗顯示 clrscr,getch,getche time.h 時間日期 time,gettime,getdate,setdate,settime
|
標頭檔名稱 函式庫類別與功能
限會員,要發表迴響,請先登入
1樓. kenny2009/09/16 14:58C語言的程式庫
歐萊禮 有吧
http://www.oreilly.com.tw/product_c.php?id=index_c
C語法暨程式庫標準辭典
http://findbook.tw/book/9789867794932/basic
C++語法暨程式庫標準辭典:



