亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲精品视频在线| 日韩限制级电影在线观看| 久久综合视频网| 秋霞午夜鲁丝一区二区老狼| 欧美色精品在线视频| 亚洲美女电影在线| 91蜜桃视频在线| 亚洲精选一二三| 色激情天天射综合网| 亚洲精品免费播放| 色94色欧美sute亚洲13| 亚洲欧美日韩国产综合在线| av电影在线观看不卡| 中文字幕欧美一区| 丁香亚洲综合激情啪啪综合| 中文字幕精品—区二区四季| 国产成人超碰人人澡人人澡| 久久久久国产一区二区三区四区 | 中文字幕乱码亚洲精品一区| 国产精品一区专区| 欧美国产一区在线| 99久久免费国产| 亚洲一区二区三区四区在线观看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 国产亚洲精品精华液| 国产成人午夜99999| 亚洲三级电影网站| 91精品国产黑色紧身裤美女| 国产麻豆精品theporn| 亚洲精品中文在线| 精品免费日韩av| 91亚洲国产成人精品一区二区三| 午夜日韩在线电影| 久久久精品综合| 欧美亚洲综合久久| 国产成人免费视频一区| 一区二区三区日韩欧美精品| 精品国产一区二区在线观看| 91视频一区二区三区| 免费人成精品欧美精品| 国产精品传媒入口麻豆| 日韩一区二区三区观看| 99re亚洲国产精品| 国内偷窥港台综合视频在线播放| 亚洲综合免费观看高清完整版| 精品黑人一区二区三区久久| 欧美性生活影院| 成人一区二区视频| 日韩av一区二区在线影视| 中文字幕日韩av资源站| 精品国产百合女同互慰| 欧美午夜一区二区三区| 波多野结衣亚洲一区| 国产一区在线精品| 日韩精品久久理论片| 一区二区三区色| 亚洲欧美视频在线观看视频| 国产免费观看久久| 久久亚洲精品国产精品紫薇| 67194成人在线观看| 在线亚洲免费视频| 91视频一区二区三区| 高清成人在线观看| 国产精品亚洲第一区在线暖暖韩国| 亚洲成人av免费| 亚洲一区二区三区在线看| 亚洲精品欧美专区| 亚洲女人****多毛耸耸8| 国产精品成人免费精品自在线观看| 久久亚洲精精品中文字幕早川悠里| 欧美日韩精品综合在线| 91捆绑美女网站| 成人一区二区三区视频在线观看| 成人黄色免费短视频| 视频在线观看91| 亚洲精品国产无天堂网2021| 欧美激情一区三区| 色94色欧美sute亚洲线路二| 色综合激情久久| 99r国产精品| 国产91丝袜在线播放九色| 首页国产丝袜综合| 亚洲一卡二卡三卡四卡五卡| 中文字幕在线不卡一区二区三区| 久久综合成人精品亚洲另类欧美| 337p亚洲精品色噜噜狠狠| 国产精品99久久久久久有的能看| 久久精品国产99| 日本aⅴ免费视频一区二区三区 | 久久久久久久久久久久电影| 精品精品欲导航| 日韩欧美一级二级三级久久久| 欧美日韩卡一卡二| 欧美丰满一区二区免费视频| 色噜噜狠狠成人网p站| 99精品欧美一区二区三区综合在线| 国产成人综合网| 国产精品1区二区.| 男男视频亚洲欧美| 国产精品一区二区黑丝| 国产一区二区三区电影在线观看 | 欧美一级淫片007| 91精品国产综合久久蜜臀 | 国产成人精品一区二区三区四区| 国产精品69久久久久水密桃| 国产激情偷乱视频一区二区三区| 久久精品国产**网站演员| 国产91精品入口| 99re8在线精品视频免费播放| 97久久精品人人做人人爽 | 韩国视频一区二区| 国产精品影音先锋| 成人自拍视频在线| 在线一区二区观看| 欧美日韩一区二区电影| 欧美一区二区大片| 国产亚洲自拍一区| 亚洲色图另类专区| 日韩精品一二三四| 国产综合一区二区| 99综合影院在线| 日韩一区二区电影在线| 国产喂奶挤奶一区二区三区| 国产精品久久一卡二卡| 亚洲一卡二卡三卡四卡五卡| 美日韩一区二区| youjizz久久| 欧美另类videos死尸| 欧美大胆人体bbbb| 一区二区三区资源| 捆绑调教一区二区三区| 成人黄页毛片网站| 日韩一级片网址| 国产精品麻豆视频| 日韩福利视频导航| yourporn久久国产精品| 欧美日韩不卡在线| 亚洲国产精品成人综合色在线婷婷| 亚洲人成网站影音先锋播放| 日本麻豆一区二区三区视频| 色哟哟在线观看一区二区三区| 91精品国产黑色紧身裤美女| 国产精品亲子乱子伦xxxx裸| 秋霞av亚洲一区二区三| 成人精品视频一区| 91精品国产一区二区人妖| 国产精品盗摄一区二区三区| 蜜桃视频一区二区| 欧美性猛片aaaaaaa做受| 国产亚洲精品aa午夜观看| 一区二区三区精品视频在线| 99r精品视频| 久久久久久久久久久黄色| 日韩国产成人精品| 91美女蜜桃在线| 国产欧美一区二区精品性| 美洲天堂一区二卡三卡四卡视频| 欧洲av在线精品| 亚洲国产精品精华液2区45| 经典三级视频一区| 欧美日本免费一区二区三区| 亚洲欧美一区二区三区久本道91| 蜜桃视频第一区免费观看| 日韩一区二区三| 亚洲gay无套男同| 欧美亚州韩日在线看免费版国语版| 亚洲国产精华液网站w| 黄色日韩网站视频| 欧美一级二级三级乱码| 美女在线观看视频一区二区| 欧美网站一区二区| 一区二区三区国产精品| 99国产精品久久久久久久久久| 久久色在线视频| 九色综合国产一区二区三区| 亚洲精品日日夜夜| 色香色香欲天天天影视综合网| 亚洲欧洲精品一区二区三区不卡| 国产成人av一区二区| 久久99精品久久久久婷婷| 亚洲高清免费观看高清完整版在线观看| 午夜精品福利在线| www.成人网.com| 国产精品热久久久久夜色精品三区 | 国内精品免费在线观看| 成人激情文学综合网| 亚洲成人免费电影| 精品捆绑美女sm三区| 成人短视频下载| 奇米影视一区二区三区小说| 国产欧美精品在线观看| 欧美私人免费视频| 看电视剧不卡顿的网站| 日本一区二区成人在线| 欧美系列在线观看| caoporm超碰国产精品| 日韩中文字幕麻豆| 中文字幕一区在线观看视频| 欧美疯狂性受xxxxx喷水图片| 岛国精品在线播放|