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

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

?? s.htm

?? C語言函數庫,包含所有的C語言函數
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; </PRE>
<PRE>/* a user defined line pattern */ 
/* binary: &quot;0000000000000001&quot; */ 
userpat = 1; </PRE>
<PRE>for (style=SOLID_LINE; style&lt;=USERBIT_LINE; style++) 
{ 
/* select the line style */ 
setlinestyle(style, userpat, 1); </PRE>
<PRE>/* convert style into a string */ 
strcpy(stylestr, lname[style]); </PRE>
<PRE>/* draw a line */ 
line(0, 0, midx-10, midy); </PRE>
<PRE>/* draw a rectangle */ 
rectangle(0, 0, getmaxx(), getmaxy()); </PRE>
<PRE>/* output a message */ 
outtextxy(midx, midy, stylestr); </PRE>
<PRE>/* wait for a key */ 
getch(); 
cleardevice(); 
} </PRE>
<PRE>/* clean up */ 
closegraph(); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setmem </font>
功 能: 存值到存儲區 
用 法: void setmem(void *addr, int len, char value); 
程序例: </PRE>
<PRE>#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
char *dest; </PRE>
<PRE>dest = calloc(21, sizeof(char)); 
setmem(dest, 20, 'c'); 
printf(&quot;%s\n&quot;, dest); </PRE>
<PRE>return 0; 
} 


</PRE>
<PRE>函數名:<font size="5" color="#FF0000"> setmode </font>
功 能: 設置打開文件方式 
用 法: int setmode(int handle, unsigned mode); 
程序例: </PRE>
<PRE>#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
int result; </PRE>
<PRE>result = setmode(fileno(stdprn), O_TEXT); 
if (result == -1) 
perror(&quot;Mode not available\n&quot;); 
else 
printf(&quot;Mode successfully switched\n&quot;); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setpalette </font>
功 能: 改變調色板的顏色 
用 法: void far setpalette(int index, int actural_color); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int color, maxcolor, ht; 
int y = 10; 
char msg[80]; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>maxcolor = getmaxcolor(); 
ht = 2 * textheight(&quot;W&quot;); </PRE>
<PRE>/* display the default colors */ 
for (color=1; color&lt;=maxcolor; color++) 
{ 
setcolor(color); 
sprintf(msg, &quot;Color: %d&quot;, color); 
outtextxy(1, y, msg); 
y += ht; 
} </PRE>
<PRE>/* wait for a key */ 
getch(); </PRE>
<PRE>/* black out the colors one by one */ 
for (color=1; color&lt;=maxcolor; color++) 
{ 
setpalette(color, BLACK); 
getch(); 
} </PRE>
<PRE>/* clean up */ 
closegraph(); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setrgbpalette </font>
功 能: 定義IBM8514圖形卡的顏色 
用 法: void far setrgbpalette(int colornum, int red, int green, int blue); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* select a driver and mode that supports the use */ 
/* of the setrgbpalette function. */ 
int gdriver = VGA, gmode = VGAHI, errorcode; 
struct palettetype pal; 
int i, ht, y, xmax; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>/* grab a copy of the palette */ 
getpalette(&amp;pal); </PRE>
<PRE>/* create gray scale */ 
for (i=0; i setrgbpalette(pal.colors[i], i*4, i*4, i*4); </PRE>
<PRE>/* display the gray scale */ 
ht = getmaxy() / 16; 
xmax = getmaxx(); 
y = 0; 
for (i=0; i { 
setfillstyle(SOLID_FILL, i); 
bar(0, y, xmax, y+ht); 
y += ht; 
} </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">settextjustify </font>
功 能: 為圖形函數設置文本的對齊方式 
用 法: void far settextjustify(int horiz, int vert); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>/* function prototype */ 
void xat(int x, int y); </PRE>
<PRE>/* horizontal text justification settings */ 
char *hjust[] = { &quot;LEFT_TEXT&quot;, 
&quot;CENTER_TEXT&quot;, 
&quot;RIGHT_TEXT&quot; 
}; </PRE>
<PRE>/* vertical text justification settings */ 
char *vjust[] = { &quot;LEFT_TEXT&quot;, 
&quot;CENTER_TEXT&quot;, 
&quot;RIGHT_TEXT&quot; 
}; </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, hj, vj; 
char msg[80]; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; </PRE>
<PRE>/* loop through text justifications */ 
for (hj=LEFT_TEXT; hj&lt;=RIGHT_TEXT; hj++) 
for (vj=LEFT_TEXT; vj&lt;=RIGHT_TEXT; vj++) 
{ 
cleardevice(); 
/* set the text justification */ 
settextjustify(hj, vj); </PRE>
<PRE>/* create a message string */ 
sprintf(msg, &quot;%s %s&quot;, hjust[hj], vjust[vj]); </PRE>
<PRE>/* create cross hairs on the screen */ 
xat(midx, midy); </PRE>
<PRE>/* output the message */ 
outtextxy(midx, midy, msg); 
getch(); 
} </PRE>
<PRE>/* clean up */ 
closegraph(); 
return 0; 
} </PRE>
<PRE>/* draw an &quot;x&quot; at (x, y) */ 
void xat(int x, int y) 
{ 
line(x-4, y, x+4, y); 
line(x, y-4, x, y+4); 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">settextstyle </font>
功 能: 為圖形輸出設置當前的文本屬性 
用 法: void far settextstyle (int font, int direction, char size); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>/* the names of the text styles supported */ 
char *fname[] = { &quot;DEFAULT font&quot;, 
&quot;TRIPLEX font&quot;, 
&quot;SMALL font&quot;, 
&quot;SANS SERIF font&quot;, 
&quot;GOTHIC font&quot; 
}; </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int style, midx, midy; 
int size = 1; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; </PRE>
<PRE>settextjustify(CENTER_TEXT, CENTER_TEXT); </PRE>
<PRE>/* loop through the available text styles */ 
for (style=DEFAULT_FONT; style&lt;=GOTHIC_FONT; style++) 
{ 
cleardevice(); 
if (style == TRIPLEX_FONT) 
size = 4; </PRE>
<PRE>/* select the text style */ 
settextstyle(style, HORIZ_DIR, size); </PRE>
<PRE>/* output a message */ 
outtextxy(midx, midy, fname[style]); 
getch(); 
} </PRE>
<PRE>/* clean up */ 
closegraph(); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">settextstyle </font>
功 能: 為圖形輸出設置當前的文本屬性 
用 法: void far settextstyle (int font, int direction, char size); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>/* the names of the text styles supported */ 
char *fname[] = { &quot;DEFAULT font&quot;, 
&quot;TRIPLEX font&quot;, 
&quot;SMALL font&quot;, 
&quot;SANS SERIF font&quot;, 
&quot;GOTHIC font&quot; 
}; </PRE>
<PRE>int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int style, midx, midy; 
int size = 1; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>midx = getmaxx() / 2; 
midy = getmaxy() / 2; </PRE>
<PRE>settextjustify(CENTER_TEXT, CENTER_TEXT); </PRE>
<PRE>/* loop through the available text styles */ 
for (style=DEFAULT_FONT; style&lt;=GOTHIC_FONT; style++) 
{ 
cleardevice(); 
if (style == TRIPLEX_FONT) 
size = 4; </PRE>
<PRE>/* select the text style */ 
settextstyle(style, HORIZ_DIR, size); </PRE>
<PRE>/* output a message */ 
outtextxy(midx, midy, fname[style]); 
getch(); 
} </PRE>
<PRE>/* clean up */ 
closegraph(); 
return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">settime </font>
功 能: 設置系統時間 
用 法: void settime(struct time *timep); 
程序例: </PRE>
<PRE>#include 
#include </PRE>
<PRE>int main(void) 
{ 
struct time t; </PRE>
<PRE>gettime(&amp;t); 
printf(&quot;The current minute is: %d\n&quot;, t.ti_min); 
printf(&quot;The current hour is: %d\n&quot;, t.ti_hour); 
printf(&quot;The current hundredth of a second is: %d\n&quot;, t.ti_hund); 
printf(&quot;The current second is: %d\n&quot;, t.ti_sec); </PRE>
<PRE>/* Add one to the minutes struct element and then call settime */ 
t.ti_min++; 
settime(&amp;t); </PRE>
<PRE>return 0; 
} 

</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setusercharsize </font>
功 能: 為矢量字體改變字符寬度和高度 
用 法: void far setusercharsize(int multx, int dirx, int multy, int diry); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
/* request autodetection */ 
int gdriver = DETECT, gmode, errorcode; </PRE>
<PRE>/* initialize graphics and local variables */ 
initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;); </PRE>
<PRE>/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf(&quot;Graphics error: %s\n&quot;, grapherrormsg(errorcode)); 
printf(&quot;Press any key to halt:&quot;); 
getch(); 
exit(1); /* terminate with an error code */ 
} </PRE>
<PRE>/* select a text style */ 
settextstyle(TRIPLEX_FONT, HORIZ_DIR, 4); </PRE>
<PRE>/* move to the text starting position */ 
moveto(0, getmaxy() / 2); </PRE>
<PRE>/* output some normal text */ 
outtext(&quot;Norm &quot;); </PRE>
<PRE>/* make the text 1/3 the normal width */ 
setusercharsize(1, 3, 1, 1); 
outtext(&quot;Short &quot;); </PRE>
<PRE>/* make the text 3 times normal width */ 
setusercharsize(3, 1, 1, 1); 
outtext(&quot;Wide&quot;); </PRE>
<PRE>/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 
</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setvbuf </font>
功 能: 把緩沖區與流相關 
用 法: int setvbuf(FILE *stream, char *buf, int type, unsigned size); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ 
FILE *input, *output; 
char bufr[512]; </PRE>
<PRE>input = fopen(&quot;file.in&quot;, &quot;r+b&quot;); 
output = fopen(&quot;file.out&quot;, &quot;w&quot;); </PRE>
<PRE>/* set up input stream for minimal disk access, 
using our own character buffer */ 
if (setvbuf(input, bufr, _IOFBF, 512) != 0) 
printf(&quot;failed to set up buffer for input file\n&quot;); 
else 
printf(&quot;buffer set up for input file\n&quot;); </PRE>
<PRE>/* set up output stream for line buffering using space that 
will be obtained through an indirect call to malloc */ 
if (setvbuf(output, NULL, _IOLBF, 132) != 0) 
printf(&quot;failed to set up buffer for output file\n&quot;); 
else 
printf(&quot;buffer set up for output file\n&quot;); </PRE>
<PRE>/* perform file I/O here */ </PRE>
<PRE>/* close files */ 
fclose(input); 
fclose(output); 
return 0; 
} 


</PRE>
<PRE>函數名: <font size="5" color="#FF0000">setvect </font>
功 能: 設置中斷矢量入口 
用 法: void setvect(int intr_num, void interrupt(*isr)()); 
程序例: </PRE>
<PRE>/***NOTE: 
This is an interrupt service routine. You can NOT compile this 
program with Test Stack Overflow turned on and get an executable 
file which will operate correctly. */ </PRE>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
寂寞少妇一区二区三区| 蜜桃一区二区三区四区| 偷窥国产亚洲免费视频| 国产风韵犹存在线视精品| 91免费国产在线| 欧美成人性战久久| 一区二区三区小说| 盗摄精品av一区二区三区| 欧美视频日韩视频在线观看| 国产欧美日韩精品一区| 青青国产91久久久久久| 欧美图片一区二区三区| 国产精品丝袜一区| 国精产品一区一区三区mba桃花 | 91精品国产综合久久福利| 国产精品三级av| 国产专区欧美精品| 这里是久久伊人| 一区二区欧美精品| 一本大道久久精品懂色aⅴ| 国产日产欧美一区| 老司机午夜精品| 91精品国产91久久综合桃花| 亚洲综合成人在线视频| 日本高清不卡一区| 亚洲视频在线一区二区| 成人白浆超碰人人人人| 国产日产亚洲精品系列| 国产伦理精品不卡| 久久亚洲精品小早川怜子| 久久精品国内一区二区三区| 欧美军同video69gay| 亚洲成人av福利| 91福利视频久久久久| 一区二区三区在线免费| 91麻豆精品视频| 亚洲精品久久嫩草网站秘色| 色综合中文综合网| 欧美这里有精品| 亚洲精品美国一| 色综合一个色综合| 亚洲一区二区三区四区在线免费观看 | 欧美丝袜自拍制服另类| 亚洲国产视频a| 欧美亚洲综合另类| 日本午夜精品一区二区三区电影| 宅男噜噜噜66一区二区66| 美女网站视频久久| 26uuu亚洲婷婷狠狠天堂| 国产成人在线视频播放| 亚洲天天做日日做天天谢日日欢| 91麻豆国产福利精品| 亚洲成人综合网站| 精品日韩成人av| 成人国产视频在线观看| 亚洲影院久久精品| 日韩三级视频中文字幕| 岛国精品在线观看| 香蕉久久夜色精品国产使用方法| 欧美大片日本大片免费观看| 国产电影一区在线| 亚洲一本大道在线| 久久女同互慰一区二区三区| av高清不卡在线| 日韩黄色免费电影| 欧美极品xxx| 88在线观看91蜜桃国自产| 国产专区欧美精品| 亚洲国产日韩精品| 国产调教视频一区| 欧美视频在线观看一区| 国产白丝精品91爽爽久久| 亚洲一区二区四区蜜桃| 久久综合色天天久久综合图片| av在线播放一区二区三区| 久久精品国产免费| 亚洲精品国产精品乱码不99| 26uuuu精品一区二区| 91国产精品成人| 国产mv日韩mv欧美| 日本三级亚洲精品| 亚洲精品高清在线观看| 久久久久久久久久看片| 欧美精品一卡二卡| 97国产精品videossex| 激情文学综合丁香| 天天操天天干天天综合网| 国产精品激情偷乱一区二区∴| 欧美浪妇xxxx高跟鞋交| 在线视频你懂得一区二区三区| 国产成人自拍网| 另类调教123区| 肉丝袜脚交视频一区二区| 中文字幕亚洲一区二区av在线 | 亚洲伦理在线免费看| 国产欧美一区二区精品仙草咪| 欧美一区二区三区日韩视频| 在线视频综合导航| 一本一本久久a久久精品综合麻豆| 九九精品一区二区| 日韩avvvv在线播放| 午夜成人在线视频| 亚洲一区二区三区四区五区黄| 国产精品欧美久久久久无广告| 久久美女艺术照精彩视频福利播放| 91精品国模一区二区三区| 欧美亚洲一区二区在线| 日本精品一区二区三区高清 | 久久久亚洲精品一区二区三区| 91精品在线免费| 欧美狂野另类xxxxoooo| 欧美酷刑日本凌虐凌虐| 欧美精品丝袜久久久中文字幕| 欧美综合一区二区| 欧美日韩在线免费视频| 欧美无砖专区一中文字| 欧美日韩亚洲综合| 在线电影一区二区三区| 6080国产精品一区二区| 在线电影院国产精品| 日韩精品一区国产麻豆| 欧美tickling网站挠脚心| 精品欧美一区二区在线观看| 日韩精品一区二区三区视频 | 喷白浆一区二区| 日本在线播放一区二区三区| 日韩不卡一区二区| 久久成人久久鬼色| 盗摄精品av一区二区三区| 不卡av在线网| 欧美系列亚洲系列| 日韩一区二区三区四区| 久久久国产午夜精品| 中文字幕中文字幕一区二区 | 亚洲免费观看在线视频| 一区二区三区在线看| 免费久久99精品国产| 国产一区二区h| 91亚洲精品久久久蜜桃网站| 欧美日韩在线综合| 国产亚洲精品bt天堂精选| 国产精品国产自产拍高清av王其| 综合av第一页| 日本一道高清亚洲日美韩| 国产成人免费视频网站| 欧美性色黄大片手机版| 精品三级在线看| 亚洲素人一区二区| 麻豆国产欧美一区二区三区| av在线不卡电影| 精品女同一区二区| 亚洲精品免费播放| 国产精品18久久久久久久网站| 亚洲精品久久7777| 国产毛片精品一区| 在线观看亚洲精品视频| 久久理论电影网| 亚洲午夜电影网| 丁香婷婷深情五月亚洲| 欧美一区二区三区视频| 亚洲摸摸操操av| 国产黄色精品网站| 欧美精品日日鲁夜夜添| 国产精品妹子av| 激情久久久久久久久久久久久久久久| 91视频观看免费| 国产色婷婷亚洲99精品小说| 亚洲自拍偷拍综合| 国内欧美视频一区二区| 波多野洁衣一区| 51精品国自产在线| 亚洲自拍欧美精品| 国产精品一区二区视频| 欧美色综合影院| 亚洲欧洲中文日韩久久av乱码| 麻豆国产欧美日韩综合精品二区| 不卡视频在线观看| 欧美三级在线播放| 中文字幕永久在线不卡| 久久成人免费网| 欧美视频在线观看一区| 日韩视频一区二区三区| 亚洲精品菠萝久久久久久久| 精久久久久久久久久久| 欧美日韩成人激情| 国产女主播在线一区二区| 午夜电影网亚洲视频| 色婷婷久久久亚洲一区二区三区| 欧美一级久久久| 日韩国产在线观看一区| 91色|porny| 欧美激情一区二区在线| 国产成人午夜精品影院观看视频 | 国产老女人精品毛片久久| 欧美一区二区视频观看视频| 一区二区三区日韩精品视频| 成人综合激情网| 精品成人一区二区三区四区| 久久99久久99| 在线播放91灌醉迷j高跟美女|