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

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

?? [c函數(shù)之g].txt

?? C常用函數(shù) 多了解一些有好處的
?? TXT
?? 第 1 頁 / 共 4 頁
字號(hào):
 函數(shù)名: gcvt 
功 能: 把浮點(diǎn)數(shù)轉(zhuǎn)換成字符串 
用 法: char *gcvt(double value, int ndigit, char *buf); 
程序例: 

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

int main(void) 
{ 
char str[25]; 
double num; 
int sig = 5; /* significant digits */ 

/* a regular number */ 
num = 9.876; 
gcvt(num, sig, str); 
printf("string = %s\n", str); 

/* a negative number */ 
num = -123.4567; 
gcvt(num, sig, str); 
printf("string = %s\n", str); 

/* scientific notation */ 
num = 0.678e5; 
gcvt(num, sig, str); 
printf("string = %s\n", str); 

return(0); 
} 




函數(shù)名: geninterrupt 
功 能: 產(chǎn)生一個(gè)軟中斷 
用 法: void geninterrupt(int intr_num); 
程序例: 

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

/* function prototype */ 
void writechar(char ch); 

int main(void) 
{ 
clrscr(); 
gotoxy(80,25); 
writechar('*'); 
getch(); 
return 0; 
} 

/* 
outputs a character at the current cursor 
position using the video BIOS to avoid the 
scrolling of the screen when writing to 
location (80,25). 
*/ 

void writechar(char ch) 
{ 
struct text_info ti; 
/* grab current text settings */ 
gettextinfo(&ti); 
/* interrupt 0x10 sub-function 9 */ 
_AH = 9; 
/* character to be output */ 
_AL = ch; 
_BH = 0; /* video page */ 
_BL = ti.attribute; /* video attribute */ 
_CX = 1; /* repetition factor */ 
geninterrupt(0x10); /* output the char */ 
} 



函數(shù)名: getarccoords 
功 能: 取得最后一次調(diào)用arc的坐標(biāo) 
用 法: void far getarccoords(struct arccoordstype far *arccoords); 
程序例: 

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

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
struct arccoordstype arcinfo; 
int midx, midy; 
int stangle = 45, endangle = 270; 
char sstr[80], estr[80]; 

/* 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(); 
/* terminate with an error code */ 
exit(1); 
} 

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

/* draw arc and get coordinates */ 
setcolor(getmaxcolor()); 
arc(midx, midy, stangle, endangle, 100); 
getarccoords(&arcinfo); 

/* convert arc information into strings */ 
sprintf(sstr, "*- (%d, %d)", 
arcinfo.xstart, arcinfo.ystart); 
sprintf(estr, "*- (%d, %d)", 
arcinfo.xend, arcinfo.yend); 

/* output the arc information */ 
outtextxy(arcinfo.xstart, 
arcinfo.ystart, sstr); 
outtextxy(arcinfo.xend, 
arcinfo.yend, estr); 

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




函數(shù)名: getaspectratio 
功 能: 返回當(dāng)前圖形模式的縱橫比 
用 法: void far getaspectratio(int far *xasp, int far *yasp); 
程序例: 

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

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

/* 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(); 
/* terminate with an error code */ 
exit(1); 
} 

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

/* get current aspect ratio settings */ 
getaspectratio(&xasp, &yasp); 

/* draw normal circle */ 
circle(midx, midy, 100); 
getch(); 

/* draw wide circle */ 
cleardevice(); 
setaspectratio(xasp/2, yasp); 
circle(midx, midy, 100); 
getch(); 

/* draw narrow circle */ 
cleardevice(); 
setaspectratio(xasp, yasp/2); 
circle(midx, midy, 100); 

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




函數(shù)名: getbkcolor 
功 能: 返回當(dāng)前背景顏色 
用 法: int far getbkcolor(void); 
程序例: 

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

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int bkcolor, midx, midy; 
char bkname[35]; 

/* 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(); 
/* terminate with an error code */ 
exit(1); 
} 

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

/* for centering text on the display */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 

/* get the current background color */ 
bkcolor = getbkcolor(); 

/* convert color value into a string */ 
itoa(bkcolor, bkname, 10); 
strcat(bkname, 
" is the current background color."); 

/* display a message */ 
outtextxy(midx, midy, bkname); 

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




函數(shù)名: getc 
功 能: 從流中取字符 
用 法: int getc(FILE *stream); 
程序例: 

#include <stdio.h> 

int main(void) 
{ 
char ch; 

printf("Input a character:"); 
/* read a character from the 
standard input stream */ 
ch = getc(stdin); 
printf("The character input was: '%c'\n", 
ch); 
return 0; 
} 




函數(shù)名: getcbrk 
功 能: 獲取Control_break設(shè)置 
用 法: int getcbrk(void); 
程序例: 

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

int main(void) 
{ 
if (getcbrk()) 
printf("Cntrl-brk flag is on\n"); 
else 
printf("Cntrl-brk flag is off\n"); 

return 0; 
} 



函數(shù)名: getch 
功 能: 從控制臺(tái)無回顯地取一個(gè)字符 
用 法: int getch(void); 
程序例: 

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

int main(void) 
{ 
char ch; 

printf("Input a character:"); 
ch = getche(); 
printf("\nYou input a '%c'\n", ch); 
return 0; 
} 



函數(shù)名: getchar 
功 能: 從stdin流中讀字符 
用 法: int getchar(void); 
程序例: 

#include <stdio.h> 

int main(void) 
{ 
int c; 

/* Note that getchar reads from stdin and 
is line buffered; this means it will 
not return until you press ENTER. */ 

while ((c = getchar()) != '\n') 
printf("%c", c); 

return 0; 
} 



函數(shù)名: getche 
功 能: 從控制臺(tái)取字符(帶回顯) 
用 法: int getche(void); 
程序例: 

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

int main(void) 
{ 
char ch; 

printf("Input a character:"); 
ch = getche(); 
printf("\nYou input a '%c'\n", ch); 
return 0; 
} 



函數(shù)名: getcolor 
功 能: 返回當(dāng)前畫線顏色 
用 法: int far getcolor(void); 
程序例: 

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

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int color, midx, midy; 
char colname[35]; 

/* 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(); 
/* terminate with an error code */ 
exit(1); 
} 

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

/* for centering text on the display */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 

/* get the current drawing color */ 
color = getcolor(); 

/* convert color value into a string */ 
itoa(color, colname, 10); 
strcat(colname, 
" is the current drawing color."); 

/* display a message */ 
outtextxy(midx, midy, colname); 

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



函數(shù)名: getcurdir 
功 能: 取指定驅(qū)動(dòng)器的當(dāng)前目錄 
用 法: int getcurdir(int drive, char *direc); 
程序例: 

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

char *current_directory(char *path) 
{ 
strcpy(path, "X:\\"); /* fill string with form of response: X:\ */ 
path[0] = 'A' + getdisk(); /* replace X with current drive letter */ 
getcurdir(0, path+3); /* fill rest of string with current directory */ 
return(path); 
} 

int main(void) 
{ 
char curdir[MAXPATH]; 

current_directory(curdir); 
printf("The current directory is %s\n", curdir); 

return 0; 
} 



函數(shù)名: getcwd 
功 能: 取當(dāng)前工作目錄 
用 法: char *getcwd(char *buf, int n); 
程序例: 

#include <stdio.h> 
#include <dir.h> 

int main(void) 
{ 
char buffer[MAXPATH]; 

getcwd(buffer, MAXPATH); 
printf("The current directory is: %s\n", buffer); 
return 0; 
} 



函數(shù)名: getdate 
功 能: 取DOS日期 
用 法: void getdate(struct *dateblk); 
程序例: 

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

int main(void) 
{ 
struct date d; 

getdate(&d); 
printf("The current year is: %d\n", 
d.da_year); 
printf("The current day is: %d\n", 
d.da_day); 
printf("The current month is: %d\n", 
d.da_mon); 
return 0; 
} 



函數(shù)名: getdefaultpalette 
功 能: 返回調(diào)色板定義結(jié)構(gòu) 
用 法: struct palettetype *far getdefaultpalette(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 i; 

/* structure for returning palette copy */ 
struct palettetype far *pal=(void *) 0; 

/* 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(); 
/* terminate with an error code */ 
exit(1); 
} 

setcolor(getmaxcolor()); 

/* return a pointer to the default palette */ 
pal = getdefaultpalette(); 

for (i=0; i<16; i++) 
{ 
printf("colors[%d] = %d\n", i, 
pal->colors[i]); 
getch(); 
} 

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



函數(shù)名: getdisk 
功 能: 取當(dāng)前磁盤驅(qū)動(dòng)器號(hào) 
用 法: int getdisk(void); 
程序例: 

#include <stdio.h> 
#include <dir.h> 

int main(void) 
{ 
int disk; 

disk = getdisk() + 'A'; 
printf("The current drive is: %c\n", 
disk); 
return 0; 
} 




函數(shù)名: getdrivername 
功 能: 返回指向包含當(dāng)前圖形驅(qū)動(dòng)程序名字的字符串指針 
用 法: char *getdrivename(void); 
程序例: 

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

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

/* stores the device driver name */ 
char *drivername; 

/* 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:"); 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产电影在线观看| 国产精品成人免费| zzijzzij亚洲日本少妇熟睡| 亚洲国产一二三| 中文字幕欧美日本乱码一线二线| 欧美日韩国产片| 91麻豆视频网站| 国产福利一区在线| 男人操女人的视频在线观看欧美| 亚洲精选一二三| 国产精品视频一二三| 26uuu久久天堂性欧美| 欧美在线观看视频一区二区三区| 国产91丝袜在线播放0| 奇米精品一区二区三区在线观看| 亚洲综合偷拍欧美一区色| 国产人久久人人人人爽| 日韩欧美国产三级| 91麻豆精品国产91久久久| 日本道色综合久久| 99国产精品久久久久久久久久 | 午夜精品影院在线观看| 亚洲欧美在线视频观看| 日本一区二区综合亚洲| 久久免费的精品国产v∧| 日韩视频在线观看一区二区| 欧美日韩综合在线| 日本韩国欧美三级| 色成人在线视频| 91视频一区二区| 99久久婷婷国产综合精品| 国产精品一级黄| 国产成人午夜精品影院观看视频| 国产资源在线一区| 久久99国产精品麻豆| 美女视频一区在线观看| 丝袜诱惑制服诱惑色一区在线观看| 亚洲一区二区三区影院| 亚洲一卡二卡三卡四卡| 一区二区三区在线观看欧美| 亚洲精品久久嫩草网站秘色| 一区二区在线观看视频在线观看| 亚洲乱码日产精品bd| 一区二区三区日韩欧美| 一区二区三区四区乱视频| 亚洲精品免费看| 亚洲国产精品天堂| 亚洲第一二三四区| 免费欧美日韩国产三级电影| 久久精品二区亚洲w码| 久久99精品久久久久久| 国产剧情一区二区三区| 成人av电影免费在线播放| 99精品国产热久久91蜜凸| 日本久久精品电影| 欧美久久免费观看| 91精品国产综合久久福利软件| 欧美一区二区黄| 久久久精品免费免费| 自拍偷拍国产精品| 亚洲成人精品一区| 精品一区二区在线观看| 国产原创一区二区| 成人aa视频在线观看| 在线观看免费成人| 日韩欧美中文字幕一区| 欧美国产精品v| 伊人一区二区三区| 奇米精品一区二区三区四区| 国产成人啪午夜精品网站男同| 99麻豆久久久国产精品免费优播| 欧美色综合天天久久综合精品| 在线观看91精品国产麻豆| 久久久国产午夜精品| 亚洲日本免费电影| 日本视频在线一区| 成人黄动漫网站免费app| 国产三级精品三级| 亚洲天堂a在线| 奇米精品一区二区三区在线观看一| 国产一区二区三区综合| 日本乱人伦aⅴ精品| 亚洲精品一区二区三区99| 日韩伦理av电影| 美女爽到高潮91| 色视频成人在线观看免| 欧美岛国在线观看| 亚洲乱码中文字幕综合| 国产麻豆精品theporn| 欧美亚洲国产bt| 中文字幕av一区二区三区免费看| 亚洲国产美女搞黄色| 成人爽a毛片一区二区免费| 欧美三级在线播放| 亚洲国产成人在线| 久久精品国产色蜜蜜麻豆| 在线观看区一区二| 国产精品人人做人人爽人人添| 青青草国产精品97视觉盛宴| 91看片淫黄大片一级在线观看| 久久伊人蜜桃av一区二区| 午夜久久久久久电影| 色女孩综合影院| 欧美激情一区二区三区| 久久激情五月激情| 欧美人与性动xxxx| 亚洲免费大片在线观看| 成人午夜av在线| 精品sm捆绑视频| 日韩综合一区二区| 欧美在线观看视频在线| 亚洲女同一区二区| 91一区二区三区在线观看| 久久先锋影音av鲁色资源网| 视频一区二区三区中文字幕| 99久久久久免费精品国产| 国产婷婷一区二区| 久久91精品国产91久久小草 | 久久综合久久综合久久| 日韩精品一区第一页| 欧美午夜电影一区| 亚洲裸体xxx| 99re这里都是精品| 中文字幕在线不卡一区二区三区| 国产精品一品二品| 国产丝袜欧美中文另类| 国产综合色产在线精品| 久久综合五月天婷婷伊人| 青草av.久久免费一区| 欧美一区永久视频免费观看| 日韩高清不卡在线| 欧美精品 国产精品| 亚洲高清免费视频| 欧美撒尿777hd撒尿| 五月婷婷另类国产| 欧美高清一级片在线| 奇米亚洲午夜久久精品| 欧美成人三级电影在线| 精品一区二区三区视频 | 一区二区三区.www| 色天使久久综合网天天| 亚洲一卡二卡三卡四卡| 欧美日韩视频第一区| 亚洲国产美女搞黄色| 欧美老女人在线| 毛片av一区二区| 久久综合色综合88| 成人黄色免费短视频| 综合久久久久久| 欧美午夜精品久久久| 人人超碰91尤物精品国产| 日韩视频在线你懂得| 国产乱码精品一区二区三区五月婷| 国产欧美日韩综合| 北岛玲一区二区三区四区| 亚洲精品视频一区| 在线播放/欧美激情| 91精品国产综合久久香蕉麻豆| 三级成人在线视频| 久久久久久久国产精品影院| 成人免费视频caoporn| 一区二区在线电影| 91精品国模一区二区三区| 国产精品888| 亚洲精品国产精品乱码不99 | 中文久久乱码一区二区| 一本到高清视频免费精品| 天天综合天天综合色| 久久久久久久久久久久电影 | 久久99九九99精品| 综合自拍亚洲综合图不卡区| 欧美日韩国产另类一区| 国产精品一卡二| 亚洲成av人影院| 日本一区二区三区电影| 欧美视频一区在线| 国产美女主播视频一区| 日韩毛片视频在线看| 日韩欧美视频在线| 色综合天天性综合| 久久精品国产亚洲5555| 亚洲乱码日产精品bd| 欧美成人欧美edvon| 日本精品视频一区二区三区| 久久成人免费网站| 玉米视频成人免费看| 久久网站热最新地址| 欧美日韩激情在线| 暴力调教一区二区三区| 另类调教123区| 亚洲图片欧美综合| 国产精品污www在线观看| 91.com在线观看| 色综合中文字幕国产 | 精品久久久久一区| 色婷婷综合久久久中文一区二区| 国产中文字幕一区| 午夜不卡av免费| 亚洲天堂av一区| 国产丝袜美腿一区二区三区|