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

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

?? [c函數(shù)之g].txt

?? C常用函數(shù) 多了解一些有好處的
?? TXT
?? 第 1 頁 / 共 4 頁
字號:
outtextxy(midx, midy, lstyle); 
outtextxy(midx, midy+2*textheight("W"), lpattern); 
outtextxy(midx, midy+4*textheight("W"), lwidth); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 



函數(shù)名: getmaxcolor 
功 能: 返回可以傳給函數(shù)setcolor的最大顏色值 
用 法: int far getmaxcolor(void); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy; 
char colstr[80]; 

/* initialize graphics and local variables 
*/ initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* grab the color info. and convert it to a string */ 
sprintf(colstr, "This mode supports colors 0..%d", getmaxcolor()); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, colstr); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 




函數(shù)名: getmaxx 
功 能: 返回屏幕的最大x坐標 
用 法: int far getmaxx(void); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy; 
char xrange[80], yrange[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* convert max resolution values into strings */ 
sprintf(xrange, "X values range from 0..%d", getmaxx()); 
sprintf(yrange, "Y values range from 0..%d", getmaxy()); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, xrange); 
outtextxy(midx, midy+textheight("W"), yrange); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 



函數(shù)名: getmaxy 
功 能: 返回屏幕的最大y坐標 
用 法: int far getmaxy(void); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy; 
char xrange[80], yrange[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* convert max resolution values into strings */ 
sprintf(xrange, "X values range from 0..%d", getmaxx()); 
sprintf(yrange, "Y values range from 0..%d", getmaxy()); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, xrange); 
outtextxy(midx, midy+textheight("W"), yrange); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


函數(shù)名: getmodename 
功 能: 返回含有指定圖形模式名的字符串指針 
用 法: char *far getmodename(int mode_name); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request autodetection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, mode; 
char numname[80], modename[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* get mode number and name strings */ 
mode = getgraphmode(); 
sprintf(numname, "%d is the current mode number.", mode); 
sprintf(modename, "%s is the current graphics mode.", getmodename(mode)); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, numname); 
outtextxy(midx, midy+2*textheight("W"), modename); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 



函數(shù)名: getmoderange 
功 能: 取給定圖形驅動程序的模式范圍 
用 法: void far getmoderange(int graphdriver, int far *lomode, 
int far *himode); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy; 
int low, high; 
char mrange[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* get the mode range for this driver */ 
getmoderange(gdriver, &low, &high); 

/* convert mode range info. into strings */ 
sprintf(mrange, "This driver supports modes %d..%d", low, high); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, mrange); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 



函數(shù)名: getpalette 
功 能: 返回有關當前調色板的信息 
用 法: void far getpalette(struct palettetype far *palette); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
struct palettetype pal; 
char psize[80], pval[20]; 
int i, ht; 
int y = 10; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

/* grab a copy of the palette */ 
getpalette(&pal); 

/* convert palette info. into strings */ 
sprintf(psize, "The palette has %d \ 
modifiable entries.", pal.size); 

/* display the information */ 
outtextxy(0, y, psize); 
if (pal.size != 0) 
{ 
ht = textheight("W"); 
y += 2*ht; 
outtextxy(0, y, "Here are the current \ 
values:"); 
y += 2*ht; 
for (i=0; i<pal.size; i++, y+=ht) 
{ 
sprintf(pval, 
"palette[%02d]: 0x%02X", i, 
pal.colors[i]); 
outtextxy(0, y, pval); 
} 
} 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


函數(shù)名: getpass 
功 能: 讀一個口令 
用 法: char *getpass(char *prompt); 
程序例: 

#include <conio.h> 

int main(void) 
{ 
char *password; 

password = getpass("Input a password:"); 
cprintf("The password is: %s\r\n", 
password); 
return 0; 
} 




函數(shù)名: getpixel 
功 能: 取得指定像素的顏色 
用 法: int far getpixel(int x, int y); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 
#include <dos.h> 

#define PIXEL_COUNT 1000 
#define DELAY_TIME 100 /* in milliseconds */ 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int i, x, y, color, maxx, maxy, 
maxcolor, seed; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

maxx = getmaxx() + 1; 
maxy = getmaxy() + 1; 
maxcolor = getmaxcolor() + 1; 

while (!kbhit()) 
{ 
/* seed the random number generator */ 
seed = random(32767); 
srand(seed); 
for (i=0; i<PIXEL_COUNT; i++) 
{ 
x = random(maxx); 
y = random(maxy); 
color = random(maxcolor); 
putpixel(x, y, color); 
} 

delay(DELAY_TIME); 
srand(seed); 
for (i=0; i<PIXEL_COUNT; i++) 
{ 
x = random(maxx); 
y = random(maxy); 
color = random(maxcolor); 
if (color == getpixel匇? ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;h;(;);;; ;e;t;p;s;p;(;););;; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;e;s;e;t; ;t;o; ;s;e;g;m;e;n;t; ;o;f; ;t;h;e; ;P;S;P; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;i;n;e; ;i;s; ;l;o;c;a;t;e;d; ;a;t; ;o;f;f;s;e;t; ;0;x;8;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;t; ;o;f; ;P;S;P; ; ; ; ; ; ; ; ; 


函數(shù)名: gets 
功 能: 從流中取一字符串 
用 法: char *gets(char *string); 
程序例: 

#include <stdio.h> 

int main(void) 
{ 
char string[80]; 

printf("Input a string:"); 
gets(string); 
printf("The string input was: %s\n", 
string); 
return 0; 
} 



函數(shù)名: gettext 
功 能: 將文本方式屏幕上的文本拷貝到存儲區(qū) 
用 法: int gettext(int left, int top, int right, int bottom, void *destin); 
程序例: 

#include <conio.h> 

char buffer[4096]; 

int main(void) 
{ 
int i; 
clrscr(); 
for (i = 0; i <= 20; i++) 
cprintf("Line #%d\r\n", i); 
gettext(1, 1, 80, 25, buffer); 
gotoxy(1, 25); 
cprintf("Press any key to clear screen..."); 
getch(); 
clrscr(); 
gotoxy(1, 25); 
cprintf("Press any key to restore screen..."); 
getch(); 
puttext(1, 1, 80, 25, buffer); 
gotoxy(1, 25); 
cprintf("Press any key to quit..."); 
getch(); 
return 0; 
} 



函數(shù)名: gettextinfo 
功 能: 取得文本模式的顯示信息 
用 法: void gettextinfo(struct text_info *inforec); 
程序例: 

#include <conio.h> 

int main(void) 
{ 
struct text_info ti; 
gettextinfo(&ti); 
cprintf("window left %2d\r\n",ti.winleft); 
cprintf("window top %2d\r\n",ti.wintop); 
cprintf("window right %2d\r\n",ti.winright); 
cprintf("window bottom %2d\r\n",ti.winbottom); 
cprintf("attribute %2d\r\n",ti.attribute); 
cprintf("normal attribute %2d\r\n",ti.normattr); 
cprintf("current mode %2d\r\n",ti.currmode); 
cprintf("screen height %2d\r\n",ti.screenheight); 
cprintf("screen width %2d\r\n",ti.screenwidth); 
cprintf("current x %2d\r\n",ti.curx); 
cprintf("current y %2d\r\n",ti.cury); 
return 0; 
} 



函數(shù)名: gettextsettings 
功 能: 返回有關當前圖形文本字體的信息 
用 法: void far gettextsettings(struct textsettingstype far *textinfo); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

/* the names of the fonts supported */ 
char *font[] = { "DEFAULT_FONT", 
"TRIPLEX_FONT", 
"SMALL_FONT", 
"SANS_SERIF_FONT", 
"GOTHIC_FONT" 
}; 

/* the names of the text directions supported */ 
char *dir[] = { "HORIZ_DIR", "VERT_DIR" }; 

/* horizontal text justifications supported */ 
char *hjust[] = { "LEFT_TEXT", "CENTER_TEXT", "RIGHT_TEXT" }; 

/* vertical text justifications supported */ 
char *vjust[] = { "BOTTOM_TEXT", "CENTER_TEXT", "TOP_TEXT" }; 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
struct textsettingstype textinfo; 
int midx, midy, ht; 
char fontstr[80], dirstr[80], sizestr[80]; 
char hjuststr[80], vjuststr[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

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

midx = getmaxx() / 2; 
midy = getmaxy() / 2; 

/* get information about current text settings */ 
gettextsettings(&textinfo); 

/* convert text information into strings */ 
sprintf(fontstr, "%s is the text style.", font[textinfo.font]); 
sprintf(dirstr, "%s is the text direction.", dir[textinfo.direction]); 
sprintf(sizestr, "%d is the text size.", textinfo.charsize); 
sprintf(hjuststr, "%s is the horizontal justification.", 
hjust[textinfo.horiz]); 
sprintf(vjuststr, "%s is the vertical justification.", 
vjust[textinfo.vert]); 

/* display the information */ 
ht = textheight("W"); 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(midx, midy, fontstr); 
outtextxy(midx, midy+2*ht, dirstr); 
outtextxy(midx, midy+4*ht, sizestr); 
outtextxy(midx, midy+6*ht, hjuststr); 
outtextxy(midx, midy+8*ht, vjuststr); 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 


函數(shù)名: gettime 
功 能: 取得系統(tǒng)時間 
用 法: void gettime(struct time *timep); 
程序例: 

#include <stdio.h> 
#include <dos.h> 

int main(void) 
{ 
struct time t; 

gettime(&t); 
printf("The current time is: %2d:%02d:%02d.%02d\n", 
t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund); 
return 0; 
} 




函數(shù)名: getvect 
功 能: 取得中斷向量入口 
用 法: void interrupt(*getvect(int intr_num)); 
程序例: 

#include <stdio.h> 
#include <dos.h> 

void interrupt get_out(); /* interrupt prototype */ 

void interrupt (*oldfunc)(); /* interrupt function pointer */ 
int looping = 1; 

int main(void) 
{ 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丰满放荡岳乱妇91ww| 国产suv一区二区三区88区| 精品国产污污免费网站入口| eeuss影院一区二区三区| 石原莉奈一区二区三区在线观看| 精品国产一区二区亚洲人成毛片| 一本色道久久综合亚洲aⅴ蜜桃| 久久99国产精品尤物| 亚洲男人的天堂在线观看| 日韩视频在线你懂得| 99久久99久久综合| 肉色丝袜一区二区| 国产精品少妇自拍| 99视频精品免费视频| 精品在线视频一区| 国产精品色噜噜| 日韩一级高清毛片| 91丨九色丨黑人外教| 国产高清精品网站| 日韩精品五月天| 国产精品欧美精品| 精品少妇一区二区三区 | 欧美一区二区三区播放老司机| 国精品**一区二区三区在线蜜桃| 一区二区三区欧美日| 精品国产91久久久久久久妲己| 91福利视频久久久久| 不卡的av网站| 经典三级在线一区| 日韩电影在线一区二区三区| 亚洲一级电影视频| 亚洲天堂av一区| 欧美一级视频精品观看| 欧美精品精品一区| 色94色欧美sute亚洲13| 久久91精品国产91久久小草| 久久久久久一二三区| 日韩欧美久久一区| 欧美怡红院视频| 在线观看亚洲一区| 91在线小视频| av电影在线观看一区| 成人精品亚洲人成在线| 视频在线观看91| 日韩国产欧美一区二区三区| 亚洲欧美一区二区三区孕妇| 中文字幕亚洲一区二区va在线| 精品国产欧美一区二区| 精品久久久久99| 日韩欧美你懂的| 91麻豆精品国产自产在线观看一区| 91啪九色porn原创视频在线观看| 国产91在线观看| 国产.欧美.日韩| 国产91对白在线观看九色| av电影一区二区| www.欧美.com| 色婷婷综合久久久中文字幕| 91一区二区三区在线观看| 国产成人综合网站| 成人久久18免费网站麻豆| 91在线视频18| 欧美性生活一区| 日韩免费在线观看| 久久久精品免费网站| 亚洲同性同志一二三专区| 亚洲免费电影在线| 三级久久三级久久久| 久久国内精品自在自线400部| 国内外成人在线视频| 国产福利一区二区三区视频| 91亚洲国产成人精品一区二三 | 欧美国产精品v| 日韩欧美一区中文| 中文欧美字幕免费| 亚洲视频一区二区在线| 午夜欧美电影在线观看| 免费观看在线综合| www.在线成人| 欧美色电影在线| 久久久国际精品| 亚洲人成人一区二区在线观看| 日日摸夜夜添夜夜添精品视频 | 欧美α欧美αv大片| 久久久久久久久久久电影| 亚洲精品久久7777| 亚洲不卡av一区二区三区| 国产激情91久久精品导航| 91免费版pro下载短视频| 欧美亚洲一区二区在线| 国产午夜精品一区二区三区嫩草 | 91久久奴性调教| 欧美一区二区三区免费在线看| 国产精品视频一二三区| 一区二区免费在线| 国产·精品毛片| 欧美日韩国产精品成人| www国产成人免费观看视频 深夜成人网| 国产一区二区不卡| 91亚洲国产成人精品一区二区三| 欧美群妇大交群的观看方式| 久久综合九色综合欧美亚洲| 亚洲图片激情小说| 麻豆精品蜜桃视频网站| 国产综合色视频| 日本道色综合久久| 精品福利在线导航| 亚洲韩国精品一区| 懂色av一区二区三区蜜臀| 欧美欧美欧美欧美| 欧美国产精品中文字幕| 国产一区二区三区蝌蚪| 欧美日韩三级在线| 亚洲精品免费播放| 国产成人精品影视| 欧美日韩综合一区| 中文字幕永久在线不卡| 午夜精品福利一区二区三区蜜桃| a亚洲天堂av| 精品日韩一区二区三区| 五月天欧美精品| 成人不卡免费av| 日本一区二区在线不卡| 免费精品99久久国产综合精品| 欧美男男青年gay1069videost | 精久久久久久久久久久| 色欧美88888久久久久久影院| 欧美国产日韩在线观看| 毛片不卡一区二区| 日韩午夜中文字幕| 亚洲动漫第一页| 色老汉一区二区三区| 欧美国产成人精品| 成人午夜电影小说| 精品91自产拍在线观看一区| 国产一区日韩二区欧美三区| 欧美乱熟臀69xxxxxx| 五月天一区二区三区| 欧亚一区二区三区| 调教+趴+乳夹+国产+精品| 日本韩国欧美三级| 午夜免费久久看| 色婷婷国产精品综合在线观看| 亚洲激情av在线| 91丨porny丨蝌蚪视频| 亚洲精品国产精华液| 日本精品视频一区二区三区| 亚洲免费观看高清| 精品国产乱码久久久久久闺蜜| 婷婷六月综合亚洲| 日韩欧美在线1卡| 国产麻豆视频精品| 国产精品二三区| 色综合色综合色综合 | 婷婷综合五月天| 欧美一区二区网站| 国产又黄又大久久| 国产精品久久久久影院| 色婷婷精品久久二区二区蜜臀av| 香蕉久久夜色精品国产使用方法 | 国产一区二区三区四区五区入口 | 日韩精品色哟哟| 久久蜜臀精品av| 国产一区二区毛片| 中文字幕一区二区三中文字幕| 成人网在线播放| 亚洲高清在线精品| 欧美日韩久久久一区| 国产毛片精品一区| 日本一区二区成人在线| 欧美在线观看一二区| 蜜臂av日日欢夜夜爽一区| 久久久久9999亚洲精品| 91高清视频在线| 天天色图综合网| 国产蜜臀av在线一区二区三区| 成人久久18免费网站麻豆 | 香蕉影视欧美成人| wwwwww.欧美系列| 成人午夜激情在线| 天天操天天干天天综合网| 日韩欧美国产高清| 99久久久精品免费观看国产蜜| 1024成人网| 欧美大黄免费观看| 成人在线综合网站| 视频一区二区三区在线| 国产欧美一区二区精品性色超碰| 在线一区二区三区四区五区| 日韩av电影天堂| 最新久久zyz资源站| 在线电影欧美成精品| 成人av在线网| 亚洲欧美一区二区三区极速播放| 欧美一级欧美三级在线观看| 另类调教123区| 亚洲综合久久av| 欧美一区二区三区免费在线看| 91免费在线播放| 亚洲va国产天堂va久久en|