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

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

?? fi.htm

?? c語言學習寶典
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
   <META NAME="Author" CONTENT="wdg">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (Win95; I) [Netscape]">
   <TITLE>fi</TITLE>
</HEAD>
<BODY>
&nbsp;
<BR>&nbsp;

<P>函數名: imagesize
<BR>功&nbsp; 能: 返回保存位圖像所需的字節數
<BR>用&nbsp; 法: unsigned far imagesize(int left, int top, int right, int
bottom);
<BR>程序例:

<P>#include &lt;graphics.h>
<BR>#include &lt;stdlib.h>
<BR>#include &lt;stdio.h>
<BR>#include &lt;conio.h>

<P>#define ARROW_SIZE 10

<P>void draw_arrow(int x, int y);

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; /* request autodetection */
<BR>&nbsp;&nbsp; int gdriver = DETECT, gmode, errorcode;
<BR>&nbsp;&nbsp; void *arrow;
<BR>&nbsp;&nbsp; int x, y, maxx;
<BR>&nbsp;&nbsp; unsigned int size;

<P>&nbsp;&nbsp; /* initialize graphics and local variables */
<BR>&nbsp;&nbsp; initgraph(&amp;gdriver, &amp;gmode, "");

<P>&nbsp;&nbsp; /* read result of initialization */
<BR>&nbsp;&nbsp; errorcode = graphresult();
<BR>&nbsp;&nbsp; if (errorcode != grOk)&nbsp; /* an error occurred */
<BR>&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Graphics error: %s\n", grapherrormsg(errorcode));
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Press any key to halt:");
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(1); /* terminate with an error
code */
<BR>&nbsp;&nbsp; }

<P>&nbsp;&nbsp; maxx = getmaxx();
<BR>&nbsp;&nbsp; x = 0;
<BR>&nbsp;&nbsp; y = getmaxy() / 2;

<P>&nbsp;&nbsp; /* draw the image to be grabbed */
<BR>&nbsp;&nbsp; draw_arrow(x, y);

<P>&nbsp;&nbsp; /* calculate the size of the image */
<BR>&nbsp;&nbsp; size = imagesize(x, y-ARROW_SIZE, x+(4*ARROW_SIZE), y+ARROW_SIZE);

<P>&nbsp;&nbsp; /* allocate memory to hold the image */
<BR>&nbsp;&nbsp; arrow = malloc(size);

<P>&nbsp;&nbsp; /* grab the image */
<BR>&nbsp;&nbsp; getimage(x, y-ARROW_SIZE, x+(4*ARROW_SIZE), y+ARROW_SIZE,
arrow);

<P>&nbsp;&nbsp; /* repeat until a key is pressed */
<BR>&nbsp;&nbsp; while (!kbhit())
<BR>&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* erase old image */
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putimage(x, y-ARROW_SIZE, arrow, XOR_PUT);

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x += ARROW_SIZE;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (x >= maxx)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = 0;

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* plot new image */
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putimage(x, y-ARROW_SIZE, arrow, XOR_PUT);
<BR>&nbsp;&nbsp; }

<P>&nbsp;&nbsp; /* clean up */
<BR>&nbsp;&nbsp; free(arrow);
<BR>&nbsp;&nbsp; closegraph();
<BR>&nbsp;&nbsp; return 0;
<BR>}

<P>void draw_arrow(int x, int y)
<BR>{
<BR>&nbsp;&nbsp; /* draw an arrow on the screen */
<BR>&nbsp;&nbsp; moveto(x, y);
<BR>&nbsp;&nbsp; linerel(4*ARROW_SIZE, 0);
<BR>&nbsp;&nbsp; linerel(-2*ARROW_SIZE, -1*ARROW_SIZE);
<BR>&nbsp;&nbsp; linerel(0, 2*ARROW_SIZE);
<BR>&nbsp;&nbsp; linerel(2*ARROW_SIZE, -1*ARROW_SIZE);
<BR>}
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;

<P>函數名: initgraph
<BR>功&nbsp; 能: 初始化圖形系統
<BR>用&nbsp; 法: void far initgraph(int far *graphdriver, int far *graphmode,
<BR>&nbsp;&nbsp;&nbsp; char far *pathtodriver);
<BR>程序例:

<P>#include &lt;graphics.h>
<BR>#include &lt;stdlib.h>
<BR>#include &lt;stdio.h>
<BR>#include &lt;conio.h>

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; /* request auto detection */
<BR>&nbsp;&nbsp; int gdriver = DETECT, gmode, errorcode;

<P>&nbsp;&nbsp; /* initialize graphics mode */
<BR>&nbsp;&nbsp; initgraph(&amp;gdriver, &amp;gmode, "");

<P>&nbsp;&nbsp; /* read result of initialization */
<BR>&nbsp;&nbsp; errorcode = graphresult();

<P>&nbsp;&nbsp; if (errorcode != grOk)&nbsp; /* an error occurred */
<BR>&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Graphics error: %s\n", grapherrormsg(errorcode));
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Press any key to halt:");
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* return with error code */
<BR>&nbsp;&nbsp; }

<P>&nbsp;&nbsp; /* draw a line */
<BR>&nbsp;&nbsp; line(0, 0, getmaxx(), getmaxy());

<P>&nbsp;&nbsp; /* clean up */
<BR>&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp; closegraph();
<BR>&nbsp;&nbsp; return 0;
<BR>}
<BR>&nbsp;
<BR>&nbsp;

<P>函數名: inport
<BR>功&nbsp; 能: 從硬件端口中輸入
<BR>用&nbsp; 法: int inp(int protid);
<BR>程序例:

<P>#include &lt;stdio.h>
<BR>#include &lt;dos.h>

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; int result;
<BR>&nbsp;&nbsp; int port = 0;&nbsp; /* serial port 0 */

<P>&nbsp;&nbsp; result = inport(port);
<BR>&nbsp;&nbsp; printf("Word read from port %d = 0x%X\n", port, result);
<BR>&nbsp;&nbsp; return 0;
<BR>}
<BR>&nbsp;
<BR>&nbsp;

<P>函數名: insline
<BR>功&nbsp; 能: 在文本窗口中插入一個空行
<BR>用&nbsp; 法: void insline(void);
<BR>程序例:

<P>#include &lt;conio.h>

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; clrscr();
<BR>&nbsp;&nbsp; cprintf("INSLINE inserts an empty line in the text window\r\n");
<BR>&nbsp;&nbsp; cprintf("at the cursor position using the current text\r\n");
<BR>&nbsp;&nbsp; cprintf("background color.&nbsp; All lines below the empty
one\r\n");
<BR>&nbsp;&nbsp; cprintf("move down one line and the bottom line scrolls\r\n");
<BR>&nbsp;&nbsp; cprintf("off the bottom of the window.\r\n");
<BR>&nbsp;&nbsp; cprintf("\r\nPress any key to continue:");
<BR>&nbsp;&nbsp; gotoxy(1, 3);
<BR>&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp; insline();
<BR>&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp; return 0;
<BR>}
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;

<P>函數名: installuserdriver
<BR>功&nbsp; 能: 安裝設備驅動程序到BGI設備驅動程序表中
<BR>用&nbsp; 法: int far installuserdriver(char far *name, int (*detect)(void));
<BR>程序例:

<P>#include &lt;graphics.h>
<BR>#include &lt;stdlib.h>
<BR>#include &lt;stdio.h>
<BR>#include &lt;conio.h>

<P>/* function prototypes */
<BR>int huge detectEGA(void);
<BR>void checkerrors(void);

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; int gdriver, gmode;

<P>&nbsp;&nbsp; /* install a user written device driver */
<BR>&nbsp;&nbsp; gdriver = installuserdriver("EGA", detectEGA);

<P>&nbsp;&nbsp; /* must force use of detection routine */
<BR>&nbsp;&nbsp; gdriver = DETECT;

<P>&nbsp;&nbsp; /* check for any installation errors */
<BR>&nbsp;&nbsp; checkerrors();

<P>&nbsp;&nbsp; /* initialize graphics and local variables */
<BR>&nbsp;&nbsp; initgraph(&amp;gdriver, &amp;gmode, "");

<P>&nbsp;&nbsp; /* check for any initialization errors */
<BR>&nbsp;&nbsp; checkerrors();

<P>&nbsp;&nbsp; /* draw a line */
<BR>&nbsp;&nbsp; line(0, 0, getmaxx(), getmaxy());

<P>&nbsp;&nbsp; /* clean up */
<BR>&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp; closegraph();
<BR>&nbsp;&nbsp; return 0;
<BR>}

<P>/* detects EGA or VGA cards */
<BR>int huge detectEGA(void)
<BR>{
<BR>&nbsp;&nbsp; int driver, mode, sugmode = 0;

<P>&nbsp;&nbsp; detectgraph(&amp;driver, &amp;mode);
<BR>&nbsp;&nbsp; if ((driver == EGA) || (driver == VGA))
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* return suggested video mode number
*/
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return sugmode;
<BR>&nbsp;&nbsp; else
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* return an error code */
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return grError;
<BR>}

<P>/* check for and report any graphics errors */
<BR>void checkerrors(void)
<BR>{
<BR>&nbsp;&nbsp; int errorcode;

<P>&nbsp;&nbsp; /* read result of last graphics operation */
<BR>&nbsp;&nbsp; errorcode = graphresult();
<BR>&nbsp;&nbsp; if (errorcode != grOk)
<BR>&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Graphics error: %s\n", grapherrormsg(errorcode));
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Press any key to halt:");
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(1);
<BR>&nbsp;&nbsp; }
<BR>}

<P>函數名: installuserfont
<BR>功&nbsp; 能: 安裝未嵌入BGI系統的字體文件(CHR)
<BR>用&nbsp; 法: int far installuserfont(char far *name);
<BR>程序例:

<P>#include &lt;graphics.h>
<BR>#include &lt;stdlib.h>
<BR>#include &lt;stdio.h>
<BR>#include &lt;conio.h>

<P>/* function prototype */
<BR>void checkerrors(void);

<P>int main(void)
<BR>{
<BR>&nbsp;&nbsp; /* request auto detection */
<BR>&nbsp;&nbsp; int gdriver = DETECT, gmode;
<BR>&nbsp;&nbsp; int userfont;
<BR>&nbsp;&nbsp; int midx, midy;

<P>&nbsp;&nbsp; /* initialize graphics and local variables */
<BR>&nbsp;&nbsp; initgraph(&amp;gdriver, &amp;gmode, "");

<P>&nbsp;&nbsp; midx = getmaxx() / 2;
<BR>&nbsp;&nbsp; midy = getmaxy() / 2;

<P>&nbsp;&nbsp; /* check for any initialization errors */
<BR>&nbsp;&nbsp; checkerrors();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合九色综合欧美就去吻| 婷婷一区二区三区| 久久久www免费人成精品| 91麻豆精品91久久久久同性| 欧美人体做爰大胆视频| 欧美日韩国产bt| 欧美丰满少妇xxxxx高潮对白| 欧美日韩一级大片网址| 欧美日韩一区在线观看| 欧美精品1区2区| 欧美成人在线直播| 精品久久免费看| 久久久国产精品麻豆 | 日韩有码一区二区三区| 爽爽淫人综合网网站| 日韩精品乱码免费| 捆绑调教一区二区三区| 国产精品一区一区| voyeur盗摄精品| 91福利资源站| 欧美疯狂做受xxxx富婆| 精品国产乱码久久久久久蜜臀| 久久婷婷一区二区三区| 国产精品久久久久影院色老大| 亚洲美女免费视频| 亚洲第一久久影院| 九色porny丨国产精品| 国产成人自拍在线| 色综合天天在线| 欧美三级乱人伦电影| 日韩美一区二区三区| 中文字幕不卡在线| 亚洲成国产人片在线观看| 麻豆视频观看网址久久| 国产69精品久久久久毛片| 日本精品一区二区三区高清| 91麻豆精品国产自产在线| 久久久精品tv| 夜夜爽夜夜爽精品视频| 狠狠网亚洲精品| 91在线国产观看| 欧美一区二区三区视频免费| 欧美国产精品劲爆| 亚洲国产精品久久人人爱蜜臀| 九色综合狠狠综合久久| 91在线观看美女| 日韩精品一区二区在线观看| 一区在线播放视频| 美日韩一区二区三区| 99re热视频这里只精品| 日韩一区二区三区在线视频| 国产精品理论片在线观看| 日韩精品一级二级| caoporen国产精品视频| 精品入口麻豆88视频| 亚洲激情中文1区| 国产精品99久久久久久久女警 | 国产成人午夜精品影院观看视频 | 精品毛片乱码1区2区3区| 亚洲日本丝袜连裤袜办公室| 久久成人综合网| 91精彩视频在线| 国产视频一区在线观看 | 精品不卡在线视频| 午夜激情久久久| 99精品欧美一区| 精品久久久久久久一区二区蜜臀| 一区二区三区四区不卡视频 | 色综合久久久久久久久久久| 欧美成人vr18sexvr| 亚洲一区二区三区在线看| 国产99精品国产| 日韩欧美国产午夜精品| 亚洲午夜久久久久久久久久久 | 色综合 综合色| 久久精品人人做人人综合| 日本在线不卡视频一二三区| 日本久久精品电影| 中文字幕字幕中文在线中不卡视频| 久久精品免费观看| 91精品在线免费| 亚洲一区二区三区不卡国产欧美| 北条麻妃一区二区三区| 久久午夜羞羞影院免费观看| 另类小说一区二区三区| 91精品国产全国免费观看| 亚洲资源在线观看| 在线免费观看一区| 亚洲人成在线播放网站岛国| 91网上在线视频| 国产一区二区视频在线| 欧美一级专区免费大片| 日韩电影在线免费| 欧美日韩二区三区| 亚洲成人av中文| 色偷偷成人一区二区三区91| 一色桃子久久精品亚洲| 91网页版在线| 亚洲免费观看高清完整版在线| av在线播放一区二区三区| 中文字幕一区二区三区不卡在线| 成人午夜激情在线| 国产精品久久久久永久免费观看| 丁香天五香天堂综合| 国产亚洲精品精华液| 国产高清在线精品| 国产女人aaa级久久久级| 成人小视频免费在线观看| 国产精品免费久久久久| 不卡视频一二三| 亚洲手机成人高清视频| 在线免费观看视频一区| 亚洲.国产.中文慕字在线| 在线不卡的av| 麻豆国产91在线播放| 337p粉嫩大胆色噜噜噜噜亚洲| 国产精品亚洲视频| 国产精品乱码一区二三区小蝌蚪| 94色蜜桃网一区二区三区| 一区二区三区电影在线播| 欧美性猛交一区二区三区精品| 五月综合激情日本mⅴ| 欧美v亚洲v综合ⅴ国产v| 国产**成人网毛片九色| 亚洲免费观看在线视频| 制服丝袜av成人在线看| 国内国产精品久久| 综合色天天鬼久久鬼色| 欧美日韩一区二区三区四区五区| 美腿丝袜在线亚洲一区 | 午夜精品一区二区三区电影天堂 | 欧美精品一区二区三区久久久 | 久久久精品欧美丰满| youjizz国产精品| 亚洲精品免费在线播放| 91精品国产入口在线| 成人综合在线观看| 亚洲国产人成综合网站| 久久久美女毛片| 91丝袜呻吟高潮美腿白嫩在线观看| 午夜精品一区二区三区三上悠亚| 精品国产第一区二区三区观看体验| 成人av网站在线| 日韩精品每日更新| 中文字幕av一区二区三区免费看| 91久久免费观看| 韩国三级中文字幕hd久久精品| 最新欧美精品一区二区三区| 91麻豆精品国产自产在线| 成人视屏免费看| 男女男精品视频网| 中文字幕一区二区三中文字幕| 67194成人在线观看| 成人网男人的天堂| 日本成人在线不卡视频| 国产精品国产三级国产有无不卡| 4438x亚洲最大成人网| av不卡免费电影| 理论电影国产精品| 亚洲精品综合在线| 久久午夜国产精品| 欧美高清激情brazzers| 不卡的av电影| 久久精品国产精品青草| 一区二区三区高清在线| 亚洲国产岛国毛片在线| 6080yy午夜一二三区久久| aaa亚洲精品| 国产一区二三区| 午夜精品福利视频网站| 国产精品福利一区| 欧美电影免费观看高清完整版| 在线视频你懂得一区二区三区| 国产成人夜色高潮福利影视| 日韩国产欧美在线视频| 亚洲乱码国产乱码精品精小说 | 国产大片一区二区| 日韩成人精品在线| 亚洲一区在线视频| 最好看的中文字幕久久| 国产亚洲成av人在线观看导航| 欧美一区二区三区视频在线观看 | 久久视频一区二区| 91精品国产入口| 精品视频在线视频| 日本高清无吗v一区| av综合在线播放| 韩国一区二区在线观看| 日韩精品一卡二卡三卡四卡无卡| 一区二区高清在线| 亚洲欧美福利一区二区| 中文字幕日韩一区| 中文字幕av免费专区久久| 精品国产精品一区二区夜夜嗨| 5566中文字幕一区二区电影 | 久久久精品tv| 337p日本欧洲亚洲大胆色噜噜| 欧美一区二区三区不卡| 欧美精品乱码久久久久久| 欧洲人成人精品|