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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c函數大全.txt

?? 關于c中的一些函數用法的說明
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
函數大全(a開頭)

函數名: abort 
功 能: 異常終止一個進程 
用 法: void abort(void); 
程序例: 
#include 
#include 

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



函數名: abs 
功 能: 求整數的絕對值 
用 法: int abs(int i); 
程序例: 
#include 
#include 

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

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



函數名: absread, abswirte 
功 能: 絕對磁盤扇區讀、寫數據 
用 法: int absread(int drive, int nsects, int sectno, void *buffer); 
int abswrite(int drive, int nsects, in tsectno, void *buffer); 
程序例: 
/* absread example */ 

#include 
#include 
#include 
#include 

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); 
} 




函數名: access 
功 能: 確定文件的訪問權限 
用 法: int access(const char *filename, int amode); 
程序例: 
#include 
#include 

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); 
} 


函數名: acos 
功 能: 反余弦函數 
用 法: double acos(double x); 
程序例: 
#include 
#include 

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; 
} 



函數名: allocmem 
功 能: 分配DOS存儲段 
用 法: int allocmem(unsigned size, unsigned *seg); 
程序例: 
#include 
#include 
#include 

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; 
} 



函數名: arc 
功 能: 畫一弧線 
用 法: void far arc(int x, int y, int stangle, int endangle, int radius); 
程序例: 
#include 
#include 
#include 
#include 

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; 
} 



函數名: asctime 
功 能: 轉換日期和時間為ASCII碼 
用 法: char *asctime(const struct tm *tblock); 
程序例: 
#include 
#include 
#include 

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; 
} 




函數名: asin 
功 能: 反正弦函數 
用 法: double asin(double x); 
程序例: 
#include 
#include 

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); 
} 




函數名: assert 
功 能: 測試一個條件并可能使程序終止 
用 法: void assert(int test); 
程序例: 
#include 
#include 
#include 

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; 
} 




函數名: atan 
功 能: 反正切函數 
用 法: double atan(double x); 
程序例: 
#include 
#include 

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); 
} 



函數名: atan2 
功 能: 計算Y/X的反正切值 
用 法: double atan2(double y, double x); 
程序例: 
#include 
#include 

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; 
} 



函數名: atexit 
功 能: 注冊終止函數 
用 法: int atexit(atexit_t func); 
程序例: 
#include 
#include 

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; 
} 




函數名: atof 
功 能: 把字符串轉換成浮點數 
用 法: double atof(const char *nptr); 
程序例: 
#include 
#include 

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

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



函數名: atoi 
功 能: 把字符串轉換成長整型數 
用 法: int atoi(const char *nptr); 
程序例: 
#include 
#include 

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

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



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

#include 
#include 

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

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

函數大全(b開頭)

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

#include 
#include 
#include 
#include 

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; i { 
/* 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; 
} 




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

#include 
#include 
#include 
#include 

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; i { 
/* 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; 
} 




函數名: bdos 
功 能: DOS系統調用 
用 法: int bdos(int dosfun, unsigned dosdx, unsigned dosal); 
程序例: 

#include 
#include 

/* 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; 
} 




函數名: bdosptr 
功 能: DOS系統調用 
用 法: int bdosptr(int dosfun, void *argument, unsigned dosal); 
程序例: 

#include 
#include 
#include 
#include 
#include 
#include 

#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; 
} 




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

#include 
#include 

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

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

int main(void) 
{ 
int in, out, status, DONE = FALSE; 

bioscom(0, SETTINGS, COM1); 
cprintf("... BIOSCOM [ESC] to exit ...\n"); 
while (!DONE) 
{ 
status = bioscom(3, 0, COM1); 
if (status & DATA_READY) 
if ((out = bioscom(2, 0, COM1) & 0x7F) != 0) 
putch(out); 
if (kbhit()) 
{ 
if ((in = getch()) == '\x1B') 
DONE = TRUE; 
bioscom(1, in, COM1); 
} 
} 
return 0; 
} 




函數名: biosdisk 
功 能: 軟硬盤I/O 
用 法: int biosdisk(int cmd, int drive, int head, int track, int sector 
int nsects, void *buffer); 
程序例: 

#include 
#include 

int main(void) 
{ 
int result; 
char buffer[512]; 

printf("Testing to see if drive a: is ready\n"); 
result = biosdisk(4,0,0,0,0,1,buffer); 
result &= 0x02; 
(result) ? (printf("Drive A: Ready\n")) : 
(printf("Drive A: Not Ready\n")); 

return 0; 
} 




函數名: biosequip 
功 能: 檢查設備 
用 法: int biosequip(void); 
程序例: 

#include 
#include 

int main(void) 
{ 
int result; 
char buffer[512]; 

printf("Testing to see if drive a: is ready\n"); 
result = biosdisk(4,0,0,0,0,1,buffer); 
result &= 0x02; 
(result) ? (printf("Drive A: Ready\n")) : 
(printf("Drive A: Not Ready\n")); 

return 0; 
} 




函數名: bioskey 
功 能: 直接使用BIOS服務的鍵盤接口 
用 法: int bioskey(int cmd); 
程序例: 

#include 
#include 
#include 

#define RIGHT 0x01 
#define LEFT 0x02 
#define CTRL 0x04 
#define ALT 0x08 

int main(void) 
{ 
int key, modifiers; 

/* function 1 returns 0 until a key is pressed */ 
while (bioskey(1) == 0); 

/* function 0 returns the key that is waiting */ 
key = bioskey(0); 

/* use function 2 to determine if shift keys were used */ 
modifiers = bioskey(2); 
if (modifiers) 
{ 
printf("["); 
if (modifiers & RIGHT) printf("RIGHT"); 
if (modifiers & LEFT) printf("LEFT"); 
if (modifiers & CTRL) printf("CTRL"); 
if (modifiers & ALT) printf("ALT"); 
printf("]"); 
} 
/* print out the character read */ 
if (isalnum(key & 0xFF)) 
printf("'%c'\n", key); 
else 
printf("%#02x\n", key); 
return 0; 
} 



函數名: biosmemory 
功 能: 返回存儲塊大小 
用 法:int biosmemory(void); 
程序例: 

#include 
#include 

int main(void) 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品秋霞影院| 久久九九久精品国产免费直播| 自拍av一区二区三区| 在线精品观看国产| 精品制服美女久久| 亚洲美女屁股眼交3| 日韩一区二区三区视频| 成人黄页在线观看| 日韩国产欧美一区二区三区| 国产清纯白嫩初高生在线观看91| 精品久久人人做人人爽| 在线一区二区三区四区| 国产精品69毛片高清亚洲| 亚洲一区免费视频| 亚洲国产成人自拍| 欧美第一区第二区| 欧美日韩激情一区| 色综合天天综合网天天看片| 日韩和欧美一区二区三区| 日韩一区中文字幕| 久久久国产一区二区三区四区小说 | 国产原创一区二区| 亚洲精品乱码久久久久久久久 | 午夜欧美电影在线观看| 国产精品全国免费观看高清| 日韩欧美国产综合一区 | av在线不卡免费看| 国产夫妻精品视频| 国内一区二区视频| 男男视频亚洲欧美| 午夜精品一区在线观看| 老司机精品视频导航| 亚洲va国产va欧美va观看| 亚洲人成小说网站色在线 | 美日韩黄色大片| 亚洲动漫第一页| 一区二区国产视频| 亚洲制服丝袜av| 精品一区二区在线播放| 91在线播放网址| 色综合天天综合在线视频| 91精品中文字幕一区二区三区| 欧美午夜在线观看| 精品视频一区三区九区| 欧美色国产精品| 国产亚洲一区字幕| 日韩精品成人一区二区三区| 成人毛片老司机大片| 成人中文字幕在线| 日韩欧美色电影| 一区二区三区美女视频| 国产精品伊人色| 欧美一区二区高清| 精品国产成人系列| 国产欧美精品一区二区色综合朱莉| 亚洲最色的网站| yourporn久久国产精品| 日韩精品一区二区三区四区视频| 夜夜亚洲天天久久| av不卡在线观看| 2023国产精品自拍| 自拍视频在线观看一区二区| 国产精品影音先锋| 精品国产乱码久久久久久蜜臀| 亚洲a一区二区| 91黄色在线观看| **欧美大码日韩| 成人一区二区三区视频| 久久久久久免费网| 国产一区二区三区在线观看精品| 欧美日本韩国一区二区三区视频| 亚洲人成网站在线| 色综合一个色综合| 亚洲精选在线视频| 色综合夜色一区| 亚洲精品老司机| 色哟哟国产精品免费观看| 欧美丰满高潮xxxx喷水动漫| 久久久久久久性| 国产在线播放一区| 国产欧美日韩精品在线| 成人18精品视频| 国产精品久久久久久久久快鸭 | 成人免费毛片aaaaa**| 久久色.com| 国产成a人无v码亚洲福利| 91精彩视频在线观看| 亚洲精品成人在线| 欧美日韩免费一区二区三区| 香蕉加勒比综合久久| 日韩一区二区精品葵司在线| 毛片基地黄久久久久久天堂| 精品欧美一区二区久久| 国产乱淫av一区二区三区 | 欧美日本高清视频在线观看| 午夜精品免费在线观看| 91精品国产欧美一区二区成人 | 成人污视频在线观看| 国产精品麻豆一区二区| 欧洲一区二区三区在线| 日韩av电影天堂| 国产日产欧美一区二区三区| 99久久99久久久精品齐齐| 精品国产青草久久久久福利| 国产成人精品aa毛片| 一区二区三区资源| 精品久久久久久无| av男人天堂一区| 日本视频中文字幕一区二区三区| 欧美videossexotv100| www.在线成人| 奇米影视7777精品一区二区| 中文字幕精品一区二区精品绿巨人| 91久久精品日日躁夜夜躁欧美| 青青草原综合久久大伊人精品优势| 久久九九99视频| 精品婷婷伊人一区三区三| 国产精品18久久久久久久久 | 色哟哟国产精品| 久久不见久久见免费视频7| 国产精品久久久久9999吃药| 777欧美精品| 色香色香欲天天天影视综合网| 激情五月播播久久久精品| 亚洲精品久久久蜜桃| 国产人妖乱国产精品人妖| 欧美色图激情小说| 99久久婷婷国产综合精品| 精品影视av免费| 香蕉av福利精品导航| 国产精品国产a级| ww亚洲ww在线观看国产| 欧美日韩国产综合草草| 91亚洲精品久久久蜜桃网站| 国产精品自拍av| 美女视频黄免费的久久| 亚洲国产视频a| 亚洲特黄一级片| 中文乱码免费一区二区| 精品国产髙清在线看国产毛片| 在线播放国产精品二区一二区四区| 99久久精品免费看国产免费软件| 国产精品一区二区三区四区 | 久久久久久久久久看片| 日韩三级电影网址| 欧美一区二区在线观看| 在线成人高清不卡| 欧美性猛交xxxx乱大交退制版| 91色婷婷久久久久合中文| 成人免费毛片嘿嘿连载视频| 国产高清久久久久| 国产伦理精品不卡| 国产在线播放一区三区四| 激情文学综合丁香| 国产九色精品成人porny| 国模大尺度一区二区三区| 九九**精品视频免费播放| 久草中文综合在线| 精品夜夜嗨av一区二区三区| 免费在线观看一区| 精品一区二区三区欧美| 久久99久久久久久久久久久| 精品一区二区三区久久久| 国产精品一区专区| 懂色av一区二区在线播放| a4yy欧美一区二区三区| 色综合久久久网| 欧美日韩久久一区二区| 91精品国产综合久久久久| 日韩美女视频在线| 国产亚洲精品资源在线26u| 国产精品视频一二三区| 一区二区在线观看视频| 婷婷亚洲久悠悠色悠在线播放| 免费在线成人网| 国产精品一区在线观看你懂的| 91亚洲精品乱码久久久久久蜜桃 | 久久99久久久欧美国产| 国产成人av一区二区三区在线| 99免费精品视频| 欧美日韩国产大片| 2020国产精品自拍| 亚洲黄色小视频| 美女mm1313爽爽久久久蜜臀| 国产福利精品导航| 欧美日韩亚洲综合在线| 精品国产乱码久久久久久久久 | 国产精品一区二区在线观看不卡| 不卡av在线网| 欧美一级黄色大片| 成人欧美一区二区三区黑人麻豆| 亚洲va在线va天堂| 风间由美一区二区三区在线观看 | 中文字幕高清一区| 亚洲小说欧美激情另类| 国产高清亚洲一区| 在线不卡免费av| 亚洲天堂福利av| 黄色精品一二区| 欧美久久久影院|