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

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

?? g.htm

?? C語言函數庫,包含所有的C語言函數
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body bgcolor="#00FFFF" text="#000080">

<PRE><font size="5"><a href="a.htm">A</a> <a href="b.htm">B</a> <a href="c.htm">C</a> <a href="d.htm">D</a> <a href="e.htm">E</a> <a href="f.htm">F</a> <a href="g.htm">G</a> <a href="h.htm">H</a> <a href="i.htm">I</a> <a href="k.htm">K</a> <a href="l.htm">L</a> <a href="m.htm">M</a> <a href="n.htm">N</a> <a href="o.htm">O</a> <a href="p.htm">P</a> <a href="q.htm">Q</a> <a href="r.htm">R</a> <a href="s.htm">S</a> <a href="t.htm">T</a> <a href="u.htm">U</a> <a href="v.htm">V</a> <a href="w.htm">W</a> </font></PRE>

<PRE> </PRE>

<PRE>函數大全(g開頭)

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">gcvt </font>
功 能: 把浮點數轉換成字符串 
用 法: char *gcvt(double value, int ndigit, char *buf); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
char str[25]; 
double num; 
int sig = 5; /* significant digits */ </PRE>
<PRE>/* a regular number */ 
num = 9.876; 
gcvt(num, sig, str); 
printf(&quot;string = %s\n&quot;, str); </PRE>
<PRE>/* a negative number */ 
num = -123.4567; 
gcvt(num, sig, str); 
printf(&quot;string = %s\n&quot;, str); </PRE>
<PRE>/* scientific notation */ 
num = 0.678e5; 
gcvt(num, sig, str); 
printf(&quot;string = %s\n&quot;, str); </PRE>
<PRE>return(0); 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">geninterrupt </font>
功 能: 產生一個軟中斷 
用 法: void geninterrupt(int intr_num); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>/* function prototype */ 
void writechar(char ch); </PRE>
<PRE>int main(void) 
{ 
clrscr(); 
gotoxy(80,25); 
writechar('*'); 
getch(); 
return 0; 
} </PRE>
<PRE>/* 
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). 
*/ </PRE>
<PRE>void writechar(char ch) 
{ 
struct text_info ti; 
/* grab current text settings */ 
gettextinfo(&amp;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 */ 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getarccoords</font> 
功 能: 取得最后一次調用arc的坐標 
用 法: void far getarccoords(struct arccoordstype far *arccoords); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>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]; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
/* an error occurred */ 
if (errorcode != grOk) 
{ 
printf(&quot;Graphics error: %s\n&quot;, 
grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
/* terminate with an error code */ 
exit(1); 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; </PRE>
<PRE>/* draw arc and get coordinates */ 
setcolor(getmaxcolor()); 
arc(midx, midy, stangle, endangle, 100); 
getarccoords(&amp;arcinfo); </PRE>
<PRE>/* convert arc information into strings */ 
sprintf(sstr, &quot;*- (%d, %d)&quot;, 
arcinfo.xstart, arcinfo.ystart); 
sprintf(estr, &quot;*- (%d, %d)&quot;, 
arcinfo.xend, arcinfo.yend); </PRE>
<PRE>/* output the arc information */ 
outtextxy(arcinfo.xstart, 
arcinfo.ystart, sstr); 
outtextxy(arcinfo.xend, 
arcinfo.yend, estr); </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


</PRE>
<PRE>函數名:<font size="5" color="#FF0000"> getaspectratio </font>
功 能: 返回當前圖形模式的縱橫比 
用 法: void far getaspectratio(int far *xasp, int far *yasp); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int xasp, yasp, midx, midy; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
/* an error occurred */ 
if (errorcode != grOk) 
{ 
printf(&quot;Graphics error: %s\n&quot;, 
grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
/* terminate with an error code */ 
exit(1); 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; 
setcolor(getmaxcolor()); </PRE>
<PRE>/* get current aspect ratio settings */ 
getaspectratio(&amp;xasp, &amp;yasp); </PRE>
<PRE>/* draw normal circle */ 
circle(midx, midy, 100); 
getch(); </PRE>
<PRE>/* draw wide circle */ 
cleardevice(); 
setaspectratio(xasp/2, yasp); 
circle(midx, midy, 100); 
getch(); </PRE>
<PRE>/* draw narrow circle */ 
cleardevice(); 
setaspectratio(xasp, yasp/2); 
circle(midx, midy, 100); </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getbkcolor </font>
功 能: 返回當前背景顏色 
用 法: int far getbkcolor(void); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int bkcolor, midx, midy; 
char bkname[35]; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
/* an error occurred */ 
if (errorcode != grOk) 
{ 
printf(&quot;Graphics error: %s\n&quot;, 
grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
/* terminate with an error code */ 
exit(1); 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; 
setcolor(getmaxcolor()); </PRE>
<PRE>/* for centering text on the display */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); </PRE>
<PRE>/* get the current background color */ 
bkcolor = getbkcolor(); </PRE>
<PRE>/* convert color value into a string */ 
itoa(bkcolor, bkname, 10); 
strcat(bkname, 
&quot; is the current background color.&quot;); </PRE>
<PRE>/* display a message */ 
outtextxy(midx, midy, bkname); </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getc </font>
功 能: 從流中取字符 
用 法: int getc(FILE *stream); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ 
char ch; </PRE>
<PRE>printf(&quot;Input a character:&quot;); 
/* read a character from the 
standard input stream */ 
ch = getc(stdin); 
printf(&quot;The character input was: '%c'\n&quot;, 
ch); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getcbrk </font>
功 能: 獲取Control_break設置 
用 法: int getcbrk(void); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
if (getcbrk()) 
printf(&quot;Cntrl-brk flag is on\n&quot;); 
else 
printf(&quot;Cntrl-brk flag is off\n&quot;); </PRE>
<PRE>return 0; 
} 

</PRE>
<PRE>函數名:<font size="5" color="#FF0000"> getch </font>
功 能: 從控制臺無回顯地取一個字符 
用 法: int getch(void); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
char ch; </PRE>
<PRE>printf(&quot;Input a character:&quot;); 
ch = getche(); 
printf(&quot;\nYou input a '%c'\n&quot;, ch); 
return 0; 
} 

</PRE>
<PRE>函數名:<font size="5" color="#FF0000"> getchar </font>
功 能: 從stdin流中讀字符 
用 法: int getchar(void); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ 
int c; </PRE>
<PRE>/* Note that getchar reads from stdin and 
is line buffered; this means it will 
not return until you press ENTER. */ </PRE>
<PRE>while ((c = getchar()) != '\n') 
printf(&quot;%c&quot;, c); </PRE>
<PRE>return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getche </font>
功 能: 從控制臺取字符(帶回顯) 
用 法: int getche(void); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
char ch; </PRE>
<PRE>printf(&quot;Input a character:&quot;); 
ch = getche(); 
printf(&quot;\nYou input a '%c'\n&quot;, ch); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getcolor </font>
功 能: 返回當前畫線顏色 
用 法: int far getcolor(void); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int color, midx, midy; 
char colname[35]; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
/* an error occurred */ 
if (errorcode != grOk) 
{ 
printf(&quot;Graphics error: %s\n&quot;, 
grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
/* terminate with an error code */ 
exit(1); 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; 
setcolor(getmaxcolor()); </PRE>
<PRE>/* for centering text on the display */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); </PRE>
<PRE>/* get the current drawing color */ 
color = getcolor(); </PRE>
<PRE>/* convert color value into a string */ 
itoa(color, colname, 10); 
strcat(colname, 
&quot; is the current drawing color.&quot;); </PRE>
<PRE>/* display a message */ 
outtextxy(midx, midy, colname); </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getcurdir </font>
功 能: 取指定驅動器的當前目錄 
用 法: int getcurdir(int drive, char *direc); 
程序例: </PRE>
<PRE>#include 
#include 
#include </PRE>
<PRE>char *current_directory(char *path) 
{ 
strcpy(path, &quot;X:\\&quot;); /* 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); 
} </PRE>
<PRE>int main(void) 
{ 
char curdir[MAXPATH]; </PRE>
<PRE>current_directory(curdir); 
printf(&quot;The current directory is %s\n&quot;, curdir); </PRE>
<PRE>return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getcwd </font>
功 能: 取當前工作目錄 
用 法: char *getcwd(char *buf, int n); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
char buffer[MAXPATH]; </PRE>
<PRE>getcwd(buffer, MAXPATH); 
printf(&quot;The current directory is: %s\n&quot;, buffer); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getdate </font>
功 能: 取DOS日期 
用 法: void getdate(struct *dateblk); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
struct date d; </PRE>
<PRE>getdate(&amp;d); 
printf(&quot;The current year is: %d\n&quot;, 
d.da_year); 
printf(&quot;The current day is: %d\n&quot;, 
d.da_day); 
printf(&quot;The current month is: %d\n&quot;, 
d.da_mon); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getdefaultpalette </font>
功 能: 返回調色板定義結構 
用 法: struct palettetype *far getdefaultpalette(void); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int i; </PRE>
<PRE>/* structure for returning palette copy */ 
struct palettetype far *pal=(void *) 0; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
/* an error occurred */ 
if (errorcode != grOk) 
{ 
printf(&quot;Graphics error: %s\n&quot;, 
grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
/* terminate with an error code */ 
exit(1); 
} </PRE>
<PRE>setcolor(getmaxcolor()); </PRE>
<PRE>/* return a pointer to the default palette */ 
pal = getdefaultpalette(); </PRE>
<PRE>for (i=0; i&lt;16; i++) 
{ 
printf(&quot;colors[%d] = %d\n&quot;, i, 
pal-&gt;colors[i]); 
getch(); 
} </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 

</PRE>
<PRE>函數名:<font size="5" color="#FF0000"> getdisk </font>
功 能: 取當前磁盤驅動器號 
用 法: int getdisk(void); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
int disk; </PRE>
<PRE>disk = getdisk() + 'A'; 
printf(&quot;The current drive is: %c\n&quot;, 
disk); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">getdrivername </font>
功 能: 返回指向包含當前圖形驅動程序名字的字符串指針 
用 法: char *getdrivename(void); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; </PRE>
<PRE>/* stores the device driver name */ 
char *drivername; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成年人影院| 337p亚洲精品色噜噜| 久久成人免费网| 婷婷中文字幕一区三区| 五月婷婷综合在线| 午夜激情一区二区三区| 亚洲国产精品麻豆| 偷拍一区二区三区四区| 麻豆91免费看| 国产高清不卡一区| 国产成人av影院| 97久久精品人人爽人人爽蜜臀| 国产精品综合二区| 成人av网站在线| 色先锋久久av资源部| 在线精品国精品国产尤物884a| 欧美伊人久久久久久久久影院| 色丁香久综合在线久综合在线观看 | 欧美电影免费观看高清完整版在线| 8v天堂国产在线一区二区| 91麻豆精品国产91久久久| 精品国产一区二区三区久久影院 | 国产精品色在线观看| 国产精品蜜臀在线观看| 亚洲丝袜自拍清纯另类| 亚洲v日本v欧美v久久精品| 日本人妖一区二区| 丁香婷婷综合色啪| 欧美日韩一级视频| 久久这里只有精品首页| 亚洲免费观看视频| 久久精品国产免费看久久精品| 国产aⅴ综合色| 日本韩国一区二区| 亚洲精品在线免费播放| 亚洲三级免费电影| 免费观看91视频大全| 丁香亚洲综合激情啪啪综合| 欧美日本在线一区| 自拍视频在线观看一区二区| 日本不卡视频在线| 91色在线porny| 欧美成人性福生活免费看| 综合色天天鬼久久鬼色| 老司机精品视频线观看86| 99精品在线免费| 亚洲精品在线观| 亚洲成年人影院| 91小宝寻花一区二区三区| 精品国产凹凸成av人网站| 亚洲一区欧美一区| 成人国产精品视频| 欧美不卡一区二区三区| 一区二区三区不卡在线观看| 国产成人啪免费观看软件| 欧美疯狂性受xxxxx喷水图片| 中国色在线观看另类| 久久成人免费日本黄色| 欧美群妇大交群中文字幕| 综合电影一区二区三区 | 欧美肥胖老妇做爰| 亚洲精品自拍动漫在线| 成人免费看片app下载| 日韩欧美国产高清| 日本不卡一区二区三区高清视频| fc2成人免费人成在线观看播放| 欧美成人a视频| 免费在线视频一区| 337p亚洲精品色噜噜狠狠| 午夜私人影院久久久久| 91久久线看在观草草青青| 国产精品成人午夜| 成人av手机在线观看| 国产欧美日韩激情| 成人夜色视频网站在线观看| 久久久综合九色合综国产精品| 美女网站视频久久| 日韩免费一区二区三区在线播放| 强制捆绑调教一区二区| 91精品国产全国免费观看| 日韩精品一区第一页| 91精品国产免费| 美女视频黄频大全不卡视频在线播放| 91精品一区二区三区在线观看| 无码av免费一区二区三区试看| 欧美精品日韩一本| 日韩avvvv在线播放| 欧美一级久久久| 国产资源精品在线观看| 欧美激情中文字幕| av不卡在线观看| 一区二区高清视频在线观看| 欧美伊人久久久久久午夜久久久久| 亚洲成人资源在线| 精品久久久久一区| 成人开心网精品视频| 亚洲欧美偷拍另类a∨色屁股| 色综合久久九月婷婷色综合| 亚洲国产视频一区| 精品国产自在久精品国产| 国产999精品久久久久久绿帽| 亚洲欧洲www| 欧美久久一二三四区| 国产一区二区三区四区在线观看| 日本一区二区久久| 欧美中文字幕一区| 狠狠v欧美v日韩v亚洲ⅴ| 日韩一区在线播放| 91精品视频网| 成人精品国产一区二区4080| 亚洲夂夂婷婷色拍ww47| 日韩精品在线网站| 91视频观看免费| 精品一区二区三区视频| 最好看的中文字幕久久| 欧美成人一区二区| 欧美亚洲愉拍一区二区| 国产成人综合亚洲91猫咪| 亚洲一区影音先锋| 中文在线资源观看网站视频免费不卡| 欧美影院精品一区| jlzzjlzz亚洲女人18| 激情图片小说一区| 首页欧美精品中文字幕| 中文字幕中文在线不卡住| 日韩视频一区二区三区在线播放| av高清不卡在线| 激情都市一区二区| 丝袜诱惑制服诱惑色一区在线观看| 亚洲精品在线免费播放| 制服丝袜中文字幕亚洲| 91日韩精品一区| 岛国精品在线播放| 久久成人免费电影| 天天操天天色综合| 亚洲精品久久久蜜桃| 国产欧美日韩在线看| 久久嫩草精品久久久精品一| 欧美一区二区三区在线看| 欧美中文字幕不卡| 91久久国产最好的精华液| proumb性欧美在线观看| 国模无码大尺度一区二区三区| 日韩av成人高清| 蜜桃视频一区二区三区| 日韩黄色小视频| 香蕉成人伊视频在线观看| 亚洲一区二区三区精品在线| 136国产福利精品导航| 国产精品久久久久久久午夜片| 精品国产第一区二区三区观看体验| 欧美精品免费视频| 欧美电影一区二区三区| 制服丝袜av成人在线看| 在线不卡免费欧美| 欧美精选午夜久久久乱码6080| 在线观看www91| 欧美无砖专区一中文字| 欧美性生交片4| 欧美群妇大交群中文字幕| 欧美日本免费一区二区三区| 欧美美女网站色| 欧美一区二区三区公司| 日韩欧美成人激情| 精品国产精品一区二区夜夜嗨| 久久久久久9999| 中文久久乱码一区二区| 夜夜精品浪潮av一区二区三区| 亚洲国产日日夜夜| 久久爱另类一区二区小说| 国产高清视频一区| www.视频一区| 欧美日韩一区二区在线观看视频| 欧美日韩极品在线观看一区| 欧美一区二区三区视频在线观看| 日韩精品一区二| 中文字幕在线观看一区二区| 亚洲精品中文字幕在线观看| 视频在线观看一区二区三区| 精品一区二区三区日韩| proumb性欧美在线观看| 欧美区在线观看| 中文字幕免费一区| 亚洲午夜成aⅴ人片| 麻豆精品国产91久久久久久| 成人午夜av电影| 5月丁香婷婷综合| 日本一区二区免费在线 | 亚洲电影你懂得| 久久99精品久久久久婷婷| 成人免费高清视频在线观看| 欧美日本乱大交xxxxx| 久久九九久久九九| 亚洲成年人影院| 成人高清免费观看| 日韩一区二区影院| 国产精品久久久久7777按摩| 美女网站色91| 欧美日韩免费一区二区三区视频| ww亚洲ww在线观看国产|