亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? c語言函數(shù)大全.txt

?? c語言函數(shù)大全
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
 
 
標(biāo)  題: C語言函數(shù)大全——按開頭字母順序
 
  提示:可
用Ctrl+F查找你所

需要的函數(shù)。

C語言函數(shù)庫 

函數(shù)大全(a開頭)



函數(shù)名: abort 
功 能: 異常終止一個(gè)進(jìn)程 
用 法: void abort(void); 
程序例: 
#include <stdio.h> 
#include <stdlib.h> 



int main(void) 
{ 
printf("Calling abort()\n"); 
abort(); 
return 0; /* This is never reached */ 
} 





函數(shù)名: abs 
功 能: 求整數(shù)的絕對值 
用 法: int abs(int i); 
程序例: 
#include <stdio.h> 
#include <math.h> 



int main(void) 
{ 
int number = -1234; 



printf("number: %d absolute value: %d\n", 
number, abs(number)); 
return 0; 
} 





函數(shù)名: absread, abswirte 
功 能: 絕對磁盤扇區(qū)讀、寫數(shù)據(jù) 
用 法: int absread(int drive, int nsects, int sectno, void *buffer); 

int abswrite(int drive, int nsects, in tsectno, void *buffer); 
程序例: 
/* absread example */ 



#include <stdio.h> 
#include <conio.h> 
#include <process.h> 
#include <dos.h> 



int main(void) 
{ 
int i, strt, ch_out, sector; 
char buf[512]; 



printf("Insert a diskette into drive A and 
press any key\n"); 
getch(); 
sector = 0; 
if (absread(0, 1, sector, &buf) != 0) 
{ 
perror("Disk problem"); 
exit(1); 
} 
printf("Read OK\n"); 
strt = 3; 
for (i=0; i<80; i++) 
{ 
ch_out = buf[strt+i]; 
putchar(ch_out); 
} 
printf("\n"); 
return(0); 
} 






函數(shù)名: access 
功 能: 確定文件的訪問權(quán)限 
用 法: int access(const char *filename, int amode); 
程序例: 
#include <stdio.h> 
#include <io.h> 



int file_exists(char *filename); 



int main(void) 
{ 
printf("Does NOTEXIST.FIL exist: %s\n", 
file_exists("NOTEXISTS.FIL") ? "YES" : "NO"); 
return 0; 
} 



int file_exists(char *filename) 
{ 
return (access(filename, 0) == 0); 
} 




函數(shù)名: acos 
功 能: 反余弦函數(shù) 
用 法: double acos(double x); 
程序例: 
#include <stdio.h> 
#include <math.h> 



int main(void) 
{ 
double result; 
double x = 0.5; 



result = acos(x); 
printf("The arc cosine of %lf is %lf\n", x, result); 
return 0; 
} 





函數(shù)名: allocmem 
功 能: 分配DOS存儲段 
用 法: int allocmem(unsigned size, unsigned *seg); 
程序例: 
#include <dos.h> 
#include <alloc.h> 
#include <stdio.h> 



int main(void) 
{ 
unsigned int size, segp; 
int stat; 



size = 64; /* (64 x 16) = 1024 bytes */ 

stat = allocmem(size, &segp); 
if (stat == -1) 
printf("Allocated memory at segment: %x\n", segp); 
else 
printf("Failed: maximum number of paragraphs available is %u\n", 

stat); 



return 0; 
} 





函數(shù)名: arc 
功 能: 畫一弧線 
用 法: void far arc(int x, int y, int stangle, int endangle, int radius); 

程序例: 
#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 



int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy; 
int stangle = 45, endangle = 135; 
int radius = 100; 



/* initialize graphics and local variables 
*/ 
initgraph(&gdriver, &gmode, ""); 



/* read result of initialization */ 
errorcode = graphresult(); /* an error occurred */ 
if (errorcode != grOk) 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 



exit(1); /* terminate with an error code 
*/ 
} 



midx = getmaxx() / 2; 
midy = getmaxy() / 2; 
setcolor(getmaxcolor()); 



/* draw arc */ 
arc(midx, midy, stangle, endangle, radius); 



/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 





函數(shù)名: asctime 
功 能: 轉(zhuǎn)換日期和時(shí)間為ASCII碼 
用 法: char *asctime(const struct tm *tblock); 
程序例: 
#include <stdio.h> 
#include <string.h> 
#include <time.h> 



int main(void) 
{ 
struct tm t; 
char str[80]; 



/* sample loading of tm structure */ 



t.tm_sec = 1; /* Seconds */ 
t.tm_min = 30; /* Minutes */ 
t.tm_hour = 9; /* Hour */ 
t.tm_mday = 22; /* Day of the Month */ 
t.tm_mon = 11; /* Month */ 
t.tm_year = 56; /* Year - does not include century */ 
t.tm_wday = 4; /* Day of the week */ 
t.tm_yday = 0; /* Does not show in asctime */ 
t.tm_isdst = 0; /* Is Daylight SavTime; does not show in asctime 
*/ 



/* converts structure to null terminated 

string */ 



strcpy(str, asctime(&t)); 
printf("%s\n", str); 



return 0; 
} 






函數(shù)名: asin 
功 能: 反正弦函數(shù) 
用 法: double asin(double x); 
程序例: 
#include <stdio.h> 
#include <math.h> 



int main(void) 
{ 
double result; 
double x = 0.5; 



result = asin(x); 
printf("The arc sin of %lf is %lf\n", x, result); 
return(0); 
} 






函數(shù)名: assert 
功 能: 測試一個(gè)條件并可能使程序終止 
用 法: void assert(int test); 
程序例: 
#include <assert.h> 
#include <stdio.h> 

#include <stdlib.h> 



struct ITEM { 
int key; 
int value; 
}; 



/* add item to list, make sure list is not 
null */ 
void additem(struct ITEM *itemptr) { 

assert(itemptr != NULL); 
/* add item to list */ 
} 



int main(void) 
{ 
additem(NULL); 
return 0; 
} 






函數(shù)名: atan 
功 能: 反正切函數(shù) 
用 法: double atan(double x); 
程序例: 
#include <stdio.h> 
#include <math.h> 



int main(void) 
{ 
double result; 
double x = 0.5; 



result = atan(x); 
printf("The arc tangent of %lf is %lf\n", x, result); 
return(0); 
} 





函數(shù)名: atan2 
功 能: 計(jì)算Y/X的反正切值 
用 法: double atan2(double y, double x); 
程序例: 
#include <stdio.h> 
#include <math.h> 



int main(void) 
{ 
double result; 
double x = 90.0, y = 45.0; 



result = atan2(y, x); 
printf("The arc tangent ratio of %lf is %lf\n", (y / x), result); 

return 0; 
} 





函數(shù)名: atexit 
功 能: 注冊終止函數(shù) 
用 法: int atexit(atexit_t func); 
程序例: 
#include <stdio.h> 
#include <stdlib.h> 



void exit_fn1(void) 
{ 
printf("Exit function #1 called\n"); 
} 



void exit_fn2(void) 
{ 
printf("Exit function #2 called\n"); 
} 



int main(void) 
{ 
/* post exit function #1 */ 
atexit(exit_fn1); 
/* post exit function #2 */ 
atexit(exit_fn2); 
return 0; 
} 






函數(shù)名: atof 
功 能: 把字符串轉(zhuǎn)換成浮點(diǎn)數(shù) 
用 法: double atof(const char *nptr); 
程序例: 
#include <stdlib.h> 
#include <stdio.h> 



int main(void) 
{ 

float f; 
char *str = "12345.67"; 



f = atof(str); 
printf("string = %s float = %f\n", str, f); 
return 0; 
} 





函數(shù)名: atoi 
功 能: 把字符串轉(zhuǎn)換成長整型數(shù) 
用 法: int atoi(const char *nptr); 
程序例: 
#include <stdlib.h> 
#include <stdio.h> 



int main(void) 
{ 
int n; 
char *str = "12345.67"; 



n = atoi(str); 
printf("string = %s integer = %d\n", str, n); 
return 0; 
} 





函數(shù)名: atol 
功 能: 把字符串轉(zhuǎn)換成長整型數(shù) 
用 法: long atol(const char *nptr); 
程序例: 



#include <stdlib.h> 
#include <stdio.h> 



int main(void) 
{ 
long l; 
char *str = "98765432"; 



l = atol(lstr); 
printf("string = %s integer = %ld\n", str, l); 
return(0); 
}



C語言函數(shù)庫 

函數(shù)大全(b開頭)



函數(shù)名: bar 

功 能: 畫一個(gè)二維條形圖 
用 法: void far bar(int left, int top, int right, int bottom); 
程序例: 



#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 



int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, i; 



/* initialize graphics and local variables 
*/ 

initgraph(&gdriver, &gmode, ""); 



/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); /* terminate with an error code */ 
} 



midx = getmaxx() / 2; 
midy = getmaxy() / 2; 



/* loop through the fill patterns */ 
for (i=SOLID_FILL; ibr> { 
/* set the fill style */ 
setfillstyle(i, getmaxcolor()); 



/* draw the bar */ 
bar(midx-50, midy-50, midx+50, 
midy+50); 



getch(); 
} 



/* clean up */ 
closegraph(); 
return 0; 
} 






函數(shù)名: bar3d 
功 能: 畫一個(gè)三維條形圖 
用 法: void far bar3d(int left, int top, int right, int bottom, 
int depth, int topflag); 
程序例: 



#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 



int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, i; 



/* initialize graphics, local variables 
*/ 
initgraph(&gdriver, &gmode, ""); 



/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); /* terminate with error code */ 
} 



midx = getmaxx() / 2; 
midy = getmaxy() / 2; 



/* loop through the fill patterns */ 
for (i=EMPTY_FILL; ibr> { 
/* set the fill style */ 
setfillstyle(i, getmaxcolor()); 



/* draw the 3-d bar */ 
bar3d(midx-50, midy-50, midx+50, midy+50, 10, 1); 



getch(); 
} 



/* clean up */ 
closegraph(); 
return 0; 
} 






函數(shù)名: bdos 
功 能: DOS系統(tǒng)調(diào)用 

用 法: int bdos(int dosfun, unsigned dosdx, unsigned dosal); 
程序例: 



#include <stdio.h> 
#include <dos.h> 



/* Get current drive as  A ,  B , ... */ 

char current_drive(void) 
{ 
char curdrive; 



/* Get current disk as 0, 1, ... */ 
curdrive = bdos(0x19, 0, 0); 
return( A  + curdrive); 
} 



int main(void) 
{ 
printf("The current drive is %c:\n", current_drive()); 
return 0; 
} 





函數(shù)名: bdosptr 
功 能: DOS系統(tǒng)調(diào)用 
用 法: int bdosptr(int dosfun, void *argument, unsigned dosal); 
程序例: 



#include <string.h> 
#include <stdio.h> 
#include <dir.h> 
#include <dos.h> 
#include <errno.h> 
#include <stdlib.h> 



#define BUFLEN 80 



int main(void) 
{ 
char buffer[BUFLEN]; 
int test; 



printf("Enter full pathname of a directory\n"); 

gets(buffer); 



test = bdosptr(0x3B,buffer,0); 
if(test) 
{ 
printf("DOS error message: %d\n", errno); 
/* See errno.h for error listings */ 
exit (1); 
} 



getcwd(buffer, BUFLEN); 
printf("The current directory is: %s\n", buffer); 



return 0; 
} 






函數(shù)名: bioscom 
功 能: 串行I/O通信 
用 法: int bioscom(int cmd, char abyte, int port); 
程序例: 



#include <bios.h> 
#include <conio.h> 



#define COM1 0 
#define DATA_READY 0x100 
#define TRUE 1 
#define FALSE 0 



#define SETTINGS ( 0x80 | 0x02 | 0x00 | 0x00) 




int main(void) 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久91精品久久久久久秒播| 成人夜色视频网站在线观看| 国产精品美女久久久久久久网站| 色视频成人在线观看免| 美女精品自拍一二三四| 亚洲黄一区二区三区| 欧美激情在线一区二区三区| 日韩一级片在线观看| 91国内精品野花午夜精品| 国产精品 欧美精品| 日本成人在线电影网| 亚洲人午夜精品天堂一二香蕉| 久久综合九色综合久久久精品综合| 在线观看网站黄不卡| 成人精品免费看| 日本特黄久久久高潮| 亚洲午夜影视影院在线观看| 国产精品久久久一区麻豆最新章节| 91麻豆精品91久久久久久清纯 | 国产精品电影一区二区三区| 精品国产精品网麻豆系列| 欧美日韩精品欧美日韩精品| 色女孩综合影院| av在线这里只有精品| 国产一区二区精品久久| 久久66热re国产| 蜜桃视频在线观看一区| 日日骚欧美日韩| 日韩精品1区2区3区| 亚洲va欧美va国产va天堂影院| 亚洲另类春色校园小说| 亚洲精品免费在线| 亚洲男同性视频| 一区二区三区国产| 一区二区成人在线视频 | 国产精品三级在线观看| 久久久高清一区二区三区| 久久久影院官网| 中文字幕+乱码+中文字幕一区| 久久精品人人做人人爽人人| 国产亚洲自拍一区| 国产午夜精品美女毛片视频| 国产亚洲综合在线| 国产精品久久久久久久久动漫| 国产精品国产馆在线真实露脸| 国产精品国产成人国产三级| 日韩伦理av电影| 亚洲一级在线观看| 亚洲成人自拍网| 日本aⅴ精品一区二区三区| 轻轻草成人在线| 黄色资源网久久资源365| 国产主播一区二区三区| 成人高清视频在线| 在线亚洲人成电影网站色www| 在线观看国产一区二区| 在线播放视频一区| 久久综合成人精品亚洲另类欧美| 久久久www成人免费毛片麻豆| 国产精品久久二区二区| 亚洲卡通欧美制服中文| 图片区日韩欧美亚洲| 国产一区二区三区电影在线观看 | 天天综合天天综合色| 久久成人免费电影| 成人综合婷婷国产精品久久免费| 99re这里都是精品| 欧美日韩一区小说| 精品久久一二三区| 亚洲视频网在线直播| 午夜精品成人在线| 国产成人午夜精品5599| 欧美亚一区二区| 精品国产麻豆免费人成网站| 国产精品久久久久久久久免费樱桃 | 国产精品欧美极品| 午夜视频在线观看一区| 国产精品一区二区在线观看不卡| 97精品久久久久中文字幕 | bt欧美亚洲午夜电影天堂| 欧美亚洲动漫制服丝袜| 久久综合久久鬼色中文字| 久久99精品视频| 日韩 欧美一区二区三区| 九九精品一区二区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲精品国产精华液| 久久精品国产澳门| 91久久香蕉国产日韩欧美9色| 欧美一级夜夜爽| 亚洲欧洲精品一区二区三区不卡| 美女视频黄免费的久久| 色老头久久综合| 久久久91精品国产一区二区三区| 亚洲国产精品久久人人爱蜜臀| 国产69精品久久久久毛片| 欧美日韩精品专区| 一区在线观看免费| 精品一区二区国语对白| 精品视频色一区| 国产精品久久久一本精品| 久久精品噜噜噜成人88aⅴ| 在线看一区二区| 国产精品国产三级国产aⅴ入口| 久久91精品久久久久久秒播| 欧美色图在线观看| 亚洲欧洲成人自拍| 丰满亚洲少妇av| 精品福利一区二区三区| 丝袜亚洲另类丝袜在线| 91精品1区2区| 亚洲欧美激情插| 不卡欧美aaaaa| 久久久av毛片精品| 韩国三级中文字幕hd久久精品| 欧美日韩日日夜夜| 亚洲自拍偷拍网站| 色狠狠色狠狠综合| 亚洲男人天堂av| 成人黄色av电影| 国产日产欧美精品一区二区三区| 麻豆成人久久精品二区三区红| 欧美专区亚洲专区| 综合激情网...| 99久久99久久综合| 中文字幕日韩精品一区| 99视频超级精品| 亚洲日本免费电影| 97se亚洲国产综合在线| 最好看的中文字幕久久| 91女厕偷拍女厕偷拍高清| 亚洲女人小视频在线观看| 日本伦理一区二区| 亚洲综合免费观看高清在线观看| 色哟哟欧美精品| 亚洲第一久久影院| 欧美日本在线看| 日韩av一区二区三区| 欧美成人aa大片| 国产二区国产一区在线观看| 国产日产欧美一区二区三区| 成人高清av在线| 亚洲欧美日韩系列| 欧美人妇做爰xxxⅹ性高电影| 天天色 色综合| 欧美成人女星排行榜| 国产精品888| 亚洲免费看黄网站| 欧美日韩电影在线播放| 免费高清在线视频一区·| 久久久久综合网| 91亚洲国产成人精品一区二三| 亚洲综合一区二区精品导航| 欧美福利视频一区| 国产一区视频导航| 亚洲三级视频在线观看| 欧美日韩免费不卡视频一区二区三区| 日韩av在线发布| 国产欧美日本一区二区三区| 成人福利视频网站| 亚洲永久免费av| 日韩欧美国产综合| 不卡一卡二卡三乱码免费网站| 一区二区三区在线观看视频| 91精品婷婷国产综合久久竹菊| 国产乱码精品一区二区三区忘忧草| 国产精品色婷婷久久58| 欧美色综合天天久久综合精品| 精品一区二区三区不卡 | 美国三级日本三级久久99| 2020国产精品| 色综合久久久网| 免费一级片91| 亚洲欧洲日韩av| 日韩三级在线免费观看| 99久久国产综合精品女不卡| 日本最新不卡在线| 国产精品超碰97尤物18| 欧美一二区视频| 91在线观看污| 免费三级欧美电影| 自拍偷拍亚洲综合| 久久色在线视频| 日本福利一区二区| 国产福利一区二区三区视频在线 | 国产精品嫩草影院com| 欧美三级电影精品| 福利电影一区二区| 午夜精品久久一牛影视| 欧美国产成人在线| 日韩欧美成人激情| 欧美性色欧美a在线播放| 国产中文字幕精品| 视频一区国产视频| 亚洲欧美一区二区三区孕妇| 欧美精品一区二区久久久| 欧美日韩激情一区二区三区| 成人开心网精品视频| 成人v精品蜜桃久久一区| 麻豆成人免费电影|