亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲综合色区另类av| 国产精品正在播放| 麻豆精品久久精品色综合| 国产乱国产乱300精品| 欧洲色大大久久| 久久精品视频在线免费观看| 亚洲精品乱码久久久久久| 久草在线在线精品观看| 一本色道久久综合亚洲精品按摩| 日韩欧美视频一区| 亚洲国产欧美一区二区三区丁香婷| 日本午夜精品一区二区三区电影| 欧美一区二区三区色| 久久精品亚洲精品国产欧美| 午夜精品一区在线观看| 99国产麻豆精品| 精品国产乱码久久久久久闺蜜| 亚洲一区二区影院| 99精品国产热久久91蜜凸| 久久综合给合久久狠狠狠97色69| 午夜成人免费视频| 99国产麻豆精品| 亚洲国产成人午夜在线一区| 激情综合色播激情啊| 91精品在线麻豆| 亚洲第一福利视频在线| 一本一道综合狠狠老| 国产精品美女久久久久av爽李琼 | 精品在线免费观看| 欧美福利电影网| 午夜免费欧美电影| 欧美中文字幕一区二区三区| 亚洲免费在线看| 91丨国产丨九色丨pron| 亚洲三级电影全部在线观看高清| 国产成人av电影在线| 国产午夜一区二区三区| 国产精品资源网站| 久久网站最新地址| 国产精品456| 国产午夜亚洲精品午夜鲁丝片| 国产一区二区三区高清播放| xnxx国产精品| 国v精品久久久网| 秋霞成人午夜伦在线观看| 在线观看不卡视频| 性感美女久久精品| 日韩一级黄色片| 国产一区视频网站| 国产人成一区二区三区影院| 成人精品亚洲人成在线| 亚洲视频一区在线| 色欧美日韩亚洲| 日韩中文字幕一区二区三区| 欧美成人女星排名| 国产·精品毛片| 亚洲精品自拍动漫在线| 欧美日韩在线观看一区二区 | 欧美一区二区不卡视频| 久久超碰97人人做人人爱| 久久影院视频免费| 99精品视频在线免费观看| 亚洲综合自拍偷拍| 日韩一区二区三区电影| 国产乱淫av一区二区三区 | 欧美一区二区精品久久911| 久久精品国产亚洲一区二区三区 | 色综合久久久久久久| 亚洲国产视频一区| 欧美精品一区二| 99久久久精品| 日本欧美一区二区| 中文字幕欧美区| 欧美亚洲丝袜传媒另类| 国产综合色视频| 亚洲视频中文字幕| 精品国产乱子伦一区| 91一区一区三区| 韩国v欧美v亚洲v日本v| 亚洲乱码国产乱码精品精可以看| 3atv一区二区三区| 91麻豆视频网站| 国产真实乱子伦精品视频| 亚洲欧美一区二区三区久本道91| 67194成人在线观看| fc2成人免费人成在线观看播放| 日产国产欧美视频一区精品| 国产精品久久久久影院| 日韩丝袜情趣美女图片| 日本精品一区二区三区四区的功能| 久久精品噜噜噜成人88aⅴ| 亚洲欧美另类综合偷拍| 久久亚洲精精品中文字幕早川悠里| 91福利在线导航| 成人午夜av电影| 精品一区二区三区免费播放 | 91精品办公室少妇高潮对白| 精品一二三四区| 99久久久久久| 国产一区二区三区久久久| 天堂在线亚洲视频| 亚洲你懂的在线视频| 久久久久久久久久久久久夜| 欧美精品tushy高清| 91麻豆精品在线观看| 福利一区二区在线观看| 另类调教123区| 日韩精品亚洲一区二区三区免费| 亚洲色图都市小说| 国产欧美日韩视频在线观看| 精品精品国产高清a毛片牛牛 | 国产精品国产精品国产专区不蜜| 精品国产污污免费网站入口 | 中文字幕一区二区三区不卡在线| 久久毛片高清国产| 日韩精品一区二区三区四区视频| 在线综合亚洲欧美在线视频| 欧美日本在线观看| 欧美性受xxxx黑人xyx| 欧美视频一区二区三区在线观看 | av资源网一区| 大美女一区二区三区| 高清视频一区二区| 成人综合日日夜夜| 成人久久视频在线观看| 不卡的av网站| 9i在线看片成人免费| 99久久免费国产| 欧美在线不卡一区| 欧美日韩在线精品一区二区三区激情| 欧美主播一区二区三区美女| 欧美亚州韩日在线看免费版国语版| 欧亚一区二区三区| 欧美男女性生活在线直播观看| 欧美精品在欧美一区二区少妇| 这里是久久伊人| 精品999久久久| 欧美国产欧美亚州国产日韩mv天天看完整| 国产视频一区在线观看| 国产精品传媒在线| 亚洲一级电影视频| 免播放器亚洲一区| 岛国一区二区三区| 日本韩国视频一区二区| 91精品国模一区二区三区| 日韩一级大片在线观看| 欧美国产一区二区在线观看| 亚洲特黄一级片| 视频一区二区欧美| 国产剧情一区在线| 色综合久久久网| 日韩午夜激情av| 日韩精彩视频在线观看| 国产在线视频精品一区| 99久久久久久99| 欧美一区二区免费观在线| 欧美激情一区二区三区全黄| 一级特黄大欧美久久久| 久久国产日韩欧美精品| av在线不卡观看免费观看| 欧美区在线观看| 欧美国产精品专区| 午夜精品福利一区二区三区蜜桃| 国产精品一区二区三区网站| 欧美午夜不卡在线观看免费| 久久亚洲影视婷婷| 午夜影视日本亚洲欧洲精品| 国产**成人网毛片九色 | 久久国产精品99精品国产| 不卡高清视频专区| 欧美一区二区久久| 亚洲人成在线观看一区二区| 久久综合综合久久综合| 色狠狠av一区二区三区| 国产亚洲福利社区一区| 视频一区在线播放| 99综合电影在线视频| 欧美xxxxx牲另类人与| 亚洲第一久久影院| 成人动漫精品一区二区| 精品毛片乱码1区2区3区| 亚洲午夜视频在线观看| 成人h动漫精品| 久久久91精品国产一区二区精品| 天堂在线亚洲视频| 91网页版在线| 国产精品乱码久久久久久| 裸体健美xxxx欧美裸体表演| 色婷婷av一区二区三区之一色屋| 国产亚洲美州欧州综合国| 麻豆精品新av中文字幕| 欧美片在线播放| 亚洲精品免费一二三区| 成人黄色在线看| 国产婷婷色一区二区三区| 麻豆精品蜜桃视频网站| 日韩一级二级三级| 奇米综合一区二区三区精品视频 | 国产美女一区二区| 91精品国产综合久久久久久|