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

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

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

?? c語言函數(shù)大全
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
} 



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



/* for centering screen messages */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 



/* output a message to the screen */ 
outtextxy(midx, midy, "press any key to clear the screen:"); 



/* wait for a key */ 
getch(); 



/* clear the screen */ 
cleardevice(); 



/* output another message */ 
outtextxy(midx, midy, "press any key to quit:"); 



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






函數(shù)名: clearerr 
功 能: 復(fù)位錯誤標(biāo)志 
用 法:void clearerr(FILE *stream); 
程序例: 



#include <stdio.h> 



int main(void) 
{ 
FILE *fp; 
char ch; 



/* open a file for writing */ 
fp = fopen("DUMMY.FIL", "w"); 



/* force an error condition by attempting 
to read */ 
ch = fgetc(fp); 
printf("%c\n",ch); 



if (ferror(fp)) 
{ 
/* display an error message */ 
printf("Error reading from DUMMY.FIL\n"); 



/* reset the error and EOF indicators */ 

clearerr(fp); 
} 



fclose(fp); 
return 0; 
} 






函數(shù)名: clearviewport 
功 能: 清除圖形視區(qū) 
用 法: void far clearviewport(void); 
程序例: 



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



#define CLIP_ON 1 /* activates clipping in 
viewport */ 



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



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



setcolor(getmaxcolor()); 
ht = textheight("W"); 



/* message in default full-screen viewport 
*/ 
outtextxy(0, 0, "* <-- (0, 0) in default viewport"); 



/* create a smaller viewport */ 
setviewport(50, 50, getmaxx()-50, getmaxy()-50, CLIP_ON); 



/* display some messages */ 
outtextxy(0, 0, "* <-- (0, 0) in smaller viewport"); 
outtextxy(0, 2*ht, "Press any key to clear viewport:"); 



/* wait for a key */ 
getch(); 



/* clear the viewport */ 
clearviewport(); 



/* output another message */ 
outtextxy(0, 0, "Press any key to quit:"); 



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






函數(shù)名: _close, close 
功 能: 關(guān)閉文件句柄 
用 法: int close(int handle); 
程序例: 



#include <string.h> 
#include <stdio.h> 
#include <fcntl.h> 
#include <io.h> 



main() 
{ 
int handle; 
char buf[11] = "0123456789"; 



/* create a file containing 10 bytes */ 

handle = open("NEW.FIL", O_CREAT); 
if (handle > -1) 
{ 
write(handle, buf, strlen(buf)); 



/* close the file */ 
close(handle); 
} 
else 
{ 
printf("Error opening file\n"); 
} 
return 0; 
} 






函數(shù)名: clock 
功 能: 確定處理器時間 
用 法: clock_t clock(void); 
程序例: 



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



int main(void) 
{ 
clock_t start, end; 
start = clock(); 



delay(2000); 



end = clock(); 
printf("The time was: %f\n", (end - start) / CLK_TCK); 



return 0; 
} 






函數(shù)名: closegraph 
功 能: 關(guān)閉圖形系統(tǒng) 
用 法: void far closegraph(void); 
程序例: 



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



int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int x, y; 



/* initialize graphics mode */ 
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 */ 
} 



x = getmaxx() / 2; 
y = getmaxy() / 2; 



/* output a message */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(x, y, "Press a key to close the graphics system:"); 



/* wait for a key */ 
getch(); 



/* closes down the graphics system */ 
closegraph(); 



printf("We re now back in text mode.\n"); 

printf("Press any key to halt:"); 
getch(); 
return 0; 
} 






函數(shù)名: clreol 
功 能: 在文本窗口中清除字符到行末 
用 法: void clreol(void); 
程序例: 



#include <conio.h> 



int main(void) 



{ 
clrscr(); 
cprintf("The function CLREOL clears all characters from the\r\n"); 
cprintf("cursor position to the end of the line within the\r\n"); 
cprintf("current text window, without moving the cursor.\r\n"); 
cprintf("Press any key to continue . . ."); 
gotoxy(14, 4); 
getch(); 



clreol(); 
getch(); 



return 0; 
} 





函數(shù)名: clrscr 
功 能: 清除文本模式窗口 
用 法: void clrscr(void); 
程序例: 



#include <conio.h> 



int main(void) 
{ 
int i; 



clrscr(); 
for (i = 0; i < 20; i++) 
cprintf("%d\r\n", i); 
cprintf("\r\nPress any key to clear screen"); 
getch(); 



clrscr(); 
cprintf("The screen has been cleared!"); 
getch(); 



return 0; 
} 






函數(shù)名: coreleft 
功 能: 返回未使用內(nèi)存的大小 
用 法: unsigned coreleft(void); 
程序例: 



#include <stdio.h> 
#include <alloc.h> 



int main(void) 
{ 
printf("The difference between the highest allocated block and\n"); 
printf("the top of the heap is: %lu bytes\n", (unsigned long) coreleft()); 




return 0; 
} 




函數(shù)名: cos 
功 能: 余弦函數(shù) 
用 法: double cos(double x); 
程序例: 



#include <stdio.h> 
#include <math.h> 



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



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






函數(shù)名: cosh 
功 能: 雙曲余弦函數(shù) 
用 法: dluble cosh(double x); 
程序例: 



#include <stdio.h> 
#include <math.h> 



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



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






函數(shù)名: country 
功 能: 返回與國家有關(guān)的信息 
用 法: struct COUNTRY *country(int countrycode, struct country *country); 

程序例: 



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



#define USA 0 



int main(void) 
{ 
struct COUNTRY country_info; 



country(USA, &country_info); 
printf("The currency symbol for the USA is: %s\n", 
country_info.co_curr); 

return 0; 
} 





函數(shù)名: cprintf 
功 能: 送格式化輸出至屏幕 
用 法: int cprintf(const char *format[, argument, ...]); 
程序例: 



#include <conio.h> 



int main(void) 
{ 
/* clear the screen */ 
clrscr(); 



/* create a text window */ 
window(10, 10, 80, 25); 



/* output some text in the window */ 
cprintf("Hello world\r\n"); 



/* wait for a key */ 
getch(); 
return 0; 
} 





函數(shù)名: cputs 
功 能: 寫字符到屏幕 
用 法: void cputs(const char *string); 
程序例: 



#include <conio.h> 



int main(void) 
{ 
/* clear the screen */ 
clrscr(); 



/* create a text window */ 
window(10, 10, 80, 25); 



/* output some text in the window */ 
cputs("This is within the window\r\n"); 



/* wait for a key */ 
getch(); 
return 0; 
} 





函數(shù)名: _creat creat 
功 能: 創(chuàng)建一個新文件或重寫一個已存在的文件 
用 法: int creat (const char *filename, int permiss); 
程序例: 



#include <sys\stat.h> 
#include <string.h> 
#include <fcntl.h> 
#include <io.h> 



int main(void) 
{ 
int handle; 
char buf[11] = "0123456789"; 



/* change the default file mode from text 
to binary */ 
_fmode = O_BINARY; 



/* create a binary file for reading and 
writing */ 
handle = creat("DUMMY.FIL", S_IREAD | S_IWRITE); 



/* write 10 bytes to the file */ 
write(handle, buf, strlen(buf)); 



/* close the file */ 
close(handle); 
return 0; 
} 




函數(shù)名: creatnew 
功 能: 創(chuàng)建一個新文件 
用 法: int creatnew(const char *filename, int attrib); 
程序例: 



#include <string.h> 
#include <stdio.h> 
#include <errno.h> 
#include <dos.h> 
#include <io.h> 



int main(void) 
{ 
int handle; 
char buf[11] = "0123456789"; 



/* attempt to create a file that doesn t 
already exist */ 
handle = creatnew("DUMMY.FIL", 0); 



if (handle == -1) 
printf("DUMMY.FIL already exists.\n"); 
else 
{ 
printf("DUMMY.FIL successfully created.\n"); 
write(handle, buf, strlen(buf)); 
close(handle); 
} 
return 0; 
} 




函數(shù)名: creattemp 
功 能: 創(chuàng)建一個新文件或重寫一個已存在的文件 
用 法: int creattemp(const char *filename, int attrib); 
程序例: 



#include <string.h> 
#include <stdio.h> 
#include <io.h> 



int main(void) 
{ 
int handle; 
char pathname[128]; 



strcpy(pathname, "\\"); 



/* create a unique file in the root directory 
*/ 
handle = creattemp(pathname, 0); 



printf("%s was the unique file created.\n", 
pathname); 
close(handle); 
return 0; 
} 




函數(shù)名: cscanf 
功 能: 從控制臺執(zhí)行格式化輸入 
用 法: int cscanf(char *format[,argument, ...]); 
程序例: 



#include <conio.h> 



int main(void) 
{ 
char string[80]; 



/* clear the screen */ 
clrscr(); 



/* Prompt the user for input */ 
cprintf("Enter a string with no spaces:"); 



/* read the input */ 
cscanf("%s", string); 



/* display what was read */ 
cprintf("\r\nThe string entered is: %s", string); 
return 0; 
} 





函數(shù)名: ctime 
功 能: 把日期和時間轉(zhuǎn)換為字符串 
用 法: char *ctime(const time_t *time); 
程序例: 



#include <stdio.h> 
#include <time.h> 



int main(void) 
{ 
time_t t; 



time(&t); 
printf("Today s date and time: %s\n", ctime(&t)); 
return 0; 
} 





函數(shù)名: ctrlbrk 
功 能: 設(shè)置Ctrl-Break處理程序 
用 法: void ctrlbrk(*fptr)(void); 
程序例: 


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品一区二区三区在线观看| 日韩伦理免费电影| 国产精品毛片高清在线完整版| 一区二区成人在线| 国产成人精品亚洲午夜麻豆| 欧美性猛交xxxx乱大交退制版| 久久美女高清视频| 三级影片在线观看欧美日韩一区二区 | 国产免费成人在线视频| 午夜影院在线观看欧美| av电影天堂一区二区在线观看| 日韩色在线观看| 亚洲图片欧美色图| 91捆绑美女网站| 国产精品午夜电影| 国产不卡高清在线观看视频| 日韩精品一区二区三区中文不卡| 亚洲综合视频在线| 色综合久久久网| 国产精品家庭影院| 国产激情一区二区三区| 欧美精品一区二区三区很污很色的| 亚洲伦理在线精品| 色综合一区二区三区| 国产欧美日韩激情| 成人免费av资源| 国产精品久久一级| 成人av在线资源| 国产精品久久久久影院亚瑟| 国产激情一区二区三区桃花岛亚洲| 欧美成人video| 捆绑变态av一区二区三区| 在线播放视频一区| 日本美女一区二区三区| 在线综合亚洲欧美在线视频| 午夜欧美在线一二页| 欧美精品久久一区二区三区| 五月婷婷色综合| 日韩一区二区三区免费观看| 免费在线成人网| 久久综合狠狠综合久久综合88| 久久成人麻豆午夜电影| 久久久久久久性| 不卡电影一区二区三区| 一区二区在线观看免费| 欧美日韩国产综合一区二区| 石原莉奈在线亚洲三区| 久久亚洲精精品中文字幕早川悠里| 国产盗摄一区二区| 亚洲欧洲国产日韩| 欧美在线看片a免费观看| 首页综合国产亚洲丝袜| 精品国产自在久精品国产| 国产suv精品一区二区三区| 国产精品日产欧美久久久久| 欧洲国内综合视频| 免费观看久久久4p| 日本一区二区视频在线| 在线免费不卡视频| 日本系列欧美系列| 中文字幕一区二区视频| 欧美色图一区二区三区| 精彩视频一区二区三区| 中文一区在线播放| 精品视频色一区| 激情五月播播久久久精品| 国产精品三级av| 宅男噜噜噜66一区二区66| 丁香网亚洲国际| 亚洲第一主播视频| 亚洲国产成人私人影院tom| 在线欧美日韩精品| 国内偷窥港台综合视频在线播放| 亚洲图片另类小说| 日韩女优毛片在线| 91蜜桃网址入口| 91在线免费看| 丝袜美腿亚洲一区二区图片| 久久人人爽爽爽人久久久| 欧美性高清videossexo| 国产成人av电影在线| 亚洲成av人片在线| 亚洲欧洲精品一区二区三区| 日韩欧美激情一区| 欧美特级限制片免费在线观看| 国产风韵犹存在线视精品| 亚洲福利视频三区| 亚洲免费av在线| 国产日韩欧美综合一区| 日韩欧美国产1| 欧美精品高清视频| 91精品91久久久中77777| 国产91在线|亚洲| 久久国产欧美日韩精品| 日韩和欧美的一区| 亚洲一区二区不卡免费| 中文字幕亚洲精品在线观看| 26uuu亚洲| 日韩欧美成人一区| 欧美精品国产精品| 欧美日韩国产综合草草| 在线观看av一区| 99久久777色| 成人高清免费在线播放| 国产ts人妖一区二区| 国产精品一区免费视频| 精品一区二区三区在线观看| 日韩激情在线观看| 亚洲一区二区在线免费观看视频 | 亚洲裸体xxx| 欧美韩日一区二区三区| 精品处破学生在线二十三| 欧美一区二区三区四区视频| 欧美日韩亚洲综合| 欧美日韩一区二区三区在线| 欧洲亚洲精品在线| 色婷婷香蕉在线一区二区| 亚洲精品一区二区三区99| 3d成人动漫网站| 日韩一区二区三区视频在线| 日韩免费观看高清完整版在线观看| 在线播放日韩导航| 日韩一区二区三区精品视频| 91精品国产综合久久香蕉的特点| 91麻豆精品国产91久久久久| 91麻豆精品国产自产在线观看一区 | 成人污视频在线观看| 成人高清免费观看| 欧美在线观看一区二区| 3d动漫精品啪啪一区二区竹菊| 日韩视频在线一区二区| 26uuu精品一区二区三区四区在线| 久久综合色播五月| 国产精品妹子av| 亚洲一级电影视频| 蜜乳av一区二区三区| 经典三级视频一区| 成人看片黄a免费看在线| 日本道免费精品一区二区三区| 欧美亚洲国产bt| 日韩欧美国产三级电影视频| 久久精品网站免费观看| 一区二区三区在线观看欧美| 日本aⅴ免费视频一区二区三区| 欧美视频在线一区| 欧美一级日韩免费不卡| 国产日韩精品一区| 亚洲高清视频中文字幕| 国产综合色产在线精品| 色诱亚洲精品久久久久久| 欧美人与z0zoxxxx视频| 国产调教视频一区| 性做久久久久久久免费看| 国产精品一区二区免费不卡| 日本二三区不卡| 精品第一国产综合精品aⅴ| 一区二区欧美精品| 精品亚洲免费视频| 91福利在线看| 国产欧美日韩精品一区| 日韩中文字幕不卡| 99精品视频在线观看免费| 日韩一区二区三区在线视频| 1024成人网| 国产成人av电影| 日韩午夜在线观看视频| 亚洲精品国产精品乱码不99| 国产乱码精品一区二区三区忘忧草| 在线一区二区视频| 中文字幕的久久| 久久99蜜桃精品| 在线视频国内一区二区| 日本一区二区三区视频视频| 奇米精品一区二区三区在线观看一| 成a人片亚洲日本久久| 欧美精品一区二区三区蜜桃视频 | 亚洲色图20p| 狠狠色伊人亚洲综合成人| 欧美日韩国产另类不卡| 亚洲人成在线观看一区二区| 国产成人精品一区二| 久久免费的精品国产v∧| 美女精品一区二区| 欧美一级艳片视频免费观看| 亚洲一区二区三区四区五区黄| 暴力调教一区二区三区| 亚洲国产精品v| 国产99久久久久久免费看农村| 日韩女同互慰一区二区| 秋霞电影网一区二区| 欧美色涩在线第一页| 一区二区三区国产| 色88888久久久久久影院野外| 日本一区二区电影| 不卡高清视频专区| 亚洲欧美日韩系列| 91久久久免费一区二区| 亚洲一区二区三区在线看| 欧美午夜宅男影院| 亚洲国产aⅴ天堂久久|