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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

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

?? C常用函數(shù) 多了解一些有好處的
?? TXT
?? 第 1 頁 / 共 4 頁
字號:
getch(); 
/* terminate with an error code */ 
exit(1); 
} 

setcolor(getmaxcolor()); 

/* get name of the device driver in use */ 
drivername = getdrivername(); 

/* for centering text on the screen */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 

/* output the name of the driver */ 
outtextxy(getmaxx() / 2, getmaxy() / 2, 
drivername); 

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



函數(shù)名: getdta 
功 能: 取磁盤傳輸?shù)刂?
用 法: char far *getdta(void); 
程序例: 

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

int main(void) 
{ 
char far *dta; 

dta = getdta(); 
printf("The current disk transfer \ 
address is: %Fp\n", dta); 
return 0; 
} 



函數(shù)名: getenv 
功 能: 從環(huán)境中取字符串 
用 法: char *getenv(char *envvar); 
程序例: 

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


int main(void) 
{ 
char *s; 

s=getenv("COMSPEC"); /* get the comspec environment parameter */ 
printf("Command processor: %s\n",s); /* display comspec parameter */ 

return 0; 
} 




函數(shù)名: getfat, getfatd 
功 能: 取文件分配表信息 
用 法: void getfat(int drive, struct fatinfo *fatblkp); 
程序例: 

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

int main(void) 
{ 
struct fatinfo diskinfo; 
int flag = 0; 

printf("Please insert disk in drive A\n"); 
getchar(); 

getfat(1, &diskinfo); 
/* get drive information */ 

printf("\nDrive A: is "); 
switch((unsigned char) diskinfo.fi_fatid) 
{ 
case 0xFD: 
printf("360K low density\n"); 
break; 

case 0xF9: 
printf("1.2 Meg high density\n"); 
break; 

default: 
printf("unformatted\n"); 
flag = 1; 
} 

if (!flag) 
{ 
printf(" sectors per cluster %5d\n", 
diskinfo.fi_sclus); 
printf(" number of clusters %5d\n", 
diskinfo.fi_nclus); 
printf(" bytes per sector %5d\n", 
diskinfo.fi_bysec); 
} 

return 0; 
} 



函數(shù)名: getfillpattern 
功 能: 將用戶定義的填充模式拷貝到內(nèi)存中 
用 法: void far getfillpattern(char far *upattern); 
程序例: 

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

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int maxx, maxy; 
char pattern[8] = {0x00, 0x70, 0x20, 0x27, 0x25, 0x27, 0x04, 0x04}; 

/* 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 */ 
} 

maxx = getmaxx(); 
maxy = getmaxy(); 
setcolor(getmaxcolor()); 

/* select a user defined fill pattern */ 
setfillpattern(pattern, getmaxcolor()); 

/* fill the screen with the pattern */ 
bar(0, 0, maxx, maxy); 

getch(); 

/* get the current user defined fill pattern */ 
getfillpattern(pattern); 

/* alter the pattern we grabbed */ 
pattern[4] -= 1; 
pattern[5] -= 3; 
pattern[6] += 3; 
pattern[7] -= 4; 

/* select our new pattern */ 
setfillpattern(pattern, getmaxcolor()); 

/* fill the screen with the new pattern */ 
bar(0, 0, maxx, maxy); 

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



函數(shù)名: getfillsettings 
功 能: 取得有關(guān)當前填充模式和填充顏色的信息 
用 法: void far getfillsettings(struct fillsettingstype far *fillinfo); 
程序例: 

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

/ the names of the fill styles supported */ 
char *fname[] = { "EMPTY_FILL", 
"SOLID_FILL", 
"LINE_FILL", 
"LTSLASH_FILL", 
"SLASH_FILL", 
"BKSLASH_FILL", 
"LTBKSLASH_FILL", 
"HATCH_FILL", 
"XHATCH_FILL", 
"INTERLEAVE_FILL", 
"WIDE_DOT_FILL", 
"CLOSE_DOT_FILL", 
"USER_FILL" 
}; 

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

/* 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 fill pattern and color */ 
getfillsettings(&fillinfo); 

/* convert fill information into strings */ 
sprintf(patstr, "%s is the fill style.", fname[fillinfo.pattern]); 
sprintf(colstr, "%d is the fill color.", fillinfo.color); 

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

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




函數(shù)名: getftime 
功 能: 取文件日期和時間 
用 法: int getftime(int handle, struct ftime *ftimep); 
程序例: 

#include <stdio.h> 
#include <io.h> 

int main(void) 
{ 
FILE *stream; 
struct ftime ft; 

if ((stream = fopen("TEST.$$$", 
"wt")) == NULL) 
{ 
fprintf(stderr, 
"Cannot open output file.\n"); 
return 1; 
} 
getftime(fileno(stream), &ft); 
printf("File time: %u:%u:%u\n", 
ft.ft_hour, ft.ft_min, 
ft.ft_tsec * 2); 
printf("File date: %u/%u/%u\n", 
ft.ft_month, ft.ft_day, 
ft.ft_year+1980); 
fclose(stream); 
return 0; 
} 




函數(shù)名: getgraphmode 
功 能: 返回當前圖形模式 
用 法: int far getgraphmode(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, mode; 
char numname[80], modename[80]; 

/* 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); 
} 

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ù)名: getftime 
功 能: 取文件日期和時間 
用 法: int getftime(int handle, struct ftime *ftimep); 
程序例: 

#include <stdio.h> 
#include <io.h> 

int main(void) 
{ 
FILE *stream; 
struct ftime ft; 

if ((stream = fopen("TEST.$$$", 
"wt")) == NULL) 
{ 
fprintf(stderr, 
"Cannot open output file.\n"); 
return 1; 
} 
getftime(fileno(stream), &ft); 
printf("File time: %u:%u:%u\n", 
ft.ft_hour, ft.ft_min, 
ft.ft_tsec * 2); 
printf("File date: %u/%u/%u\n", 
ft.ft_month, ft.ft_day, 
ft.ft_year+1980); 
fclose(stream); 
return 0; 
} 




函數(shù)名: getgraphmode 
功 能: 返回當前圖形模式 
用 法: int far getgraphmode(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, mode; 
char numname[80], modename[80]; 

/* 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); 
} 

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ù)名: getimage 
功 能: 將指定區(qū)域的一個位圖存到主存中 
用 法: void far getimage(int left, int top, int right, int bottom, 
void far *bitmap); 
程序例: 

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

void save_screen(void far *buf[4]); 
void restore_screen(void far *buf[4]); 

int maxx, maxy; 

int main(void) 
{ 
int gdriver=DETECT, gmode, errorcode; 
void far *ptr[4]; 

/* auto-detect the graphics driver and mode */ 
initgraph(&gdriver, &gmode, ""); 
errorcode = graphresult(); /* check for any errors */ 
if (errorcode != grOk) 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); 
} 
maxx = getmaxx(); 
maxy = getmaxy(); 

/* draw an image on the screen */ 
rectangle(0, 0, maxx, maxy); 
line(0, 0, maxx, maxy); 
line(0, maxy, maxx, 0); 

save_screen(ptr); /* save the current screen */ 
getch(); /* pause screen */ 
cleardevice(); /* clear screen */ 
restore_screen(ptr); /* restore the screen */ 
getch(); /* pause screen */ 

closegraph(); 
return 0; 
} 

void save_screen(void far *buf[4]) 
{ 
unsigned size; 
int ystart=0, yend, yincr, block; 

yincr = (maxy+1) / 4; 
yend = yincr; 
size = imagesize(0, ystart, maxx, yend); /* get byte size of image */ 

for (block=0; block<=3; block++) 
{ 
if ((buf[block] = farmalloc(size)) == NULL) 
{ 
closegraph(); 
printf("Error: not enough heap space in save_screen().\n"); 
exit(1); 
} 

getimage(0, ystart, maxx, yend, buf[block]); 
ystart = yend + 1; 
yend += yincr + 1; 
} 
} 

void save_screen(void far *buf[4]) 
{ 
unsigned size; 
int ystart=0, yend, yincr, block; 

yincr = (maxy+1) / 4; 
yend = yincr; 
size = imagesize(0, ystart, maxx, yend); /* get byte size of image */ 

for (block=0; block<=3; block++) 
{ 
if ((buf[block] = farmalloc(size)) == NULL) 
{ 
closegraph(); 
printf("Error: not enough heap space in save_screen().\n"); 
exit(1); 
} 

getimage(0, ystart, maxx, yend, buf[block]); 
ystart = yend + 1; 
yend += yincr + 1; 
} 
} 

void restore_screen(void far *buf[4]) 
{ 
int ystart=0, yend, yincr, block; 

yincr = (maxy+1) / 4; 
yend = yincr; 

for (block=0; block<=3; block++) 
{ 
putimage(0, ystart, buf[block], COPY_PUT); 
farfree(buf[block]); 
ystart = yend + 1; 
yend += yincr + 1; 
} 
} 



函數(shù)名: getlinesettings 
功 能: 取當前線型、模式和寬度 
用 法: void far getlinesettings(struct linesettingstype far *lininfo): 
程序例: 

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

/* the names of the line styles supported */ 
char *lname[] = { "SOLID_LINE", 
"DOTTED_LINE", 
"CENTER_LINE", 
"DASHED_LINE", 
"USERBIT_LINE" 
}; 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
struct linesettingstype lineinfo; 
int midx, midy; 
char lstyle[80], lpattern[80], lwidth[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 line settings */ 
getlinesettings(&lineinfo); 

/* convert line information into strings */ 
sprintf(lstyle, "%s is the line style.", 
lname[lineinfo.linestyle]); 
sprintf(lpattern, "0x%X is the user-defined line pattern.", 
lineinfo.upattern); 
sprintf(lwidth, "%d is the line thickness.", 
lineinfo.thickness); 

/* display the information */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲高清中文字幕| 亚洲日本乱码在线观看| 美女精品一区二区| 亚洲欧洲www| 欧美精品 国产精品| 国产一区二区三区免费播放 | 婷婷成人激情在线网| 欧美成人video| 91美女片黄在线观看91美女| 国产一区二区三区在线观看精品| 亚洲精品成人在线| 久久久久久久综合| 欧美丝袜丝交足nylons图片| 国产高清亚洲一区| 日本不卡在线视频| 午夜精品福利在线| 国产精品视频免费看| 日韩视频免费观看高清完整版在线观看| 91偷拍与自偷拍精品| 狠狠色丁香久久婷婷综合_中| 一区二区三区91| 日韩欧美在线123| 欧美日韩国产精选| av亚洲精华国产精华精华| 日本午夜一本久久久综合| 亚洲国产精品嫩草影院| ●精品国产综合乱码久久久久| 精品国产污网站| 91精品在线麻豆| 在线这里只有精品| www.爱久久.com| 成人v精品蜜桃久久一区| 国产在线观看一区二区| 国产99一区视频免费| 老司机午夜精品| 日韩av电影免费观看高清完整版在线观看| 椎名由奈av一区二区三区| 国产欧美一区二区精品性色超碰| 日韩一卡二卡三卡四卡| 欧美日韩一区二区三区在线| 懂色av一区二区在线播放| 蜜桃久久久久久| 日本成人在线一区| 另类小说色综合网站| 日韩avvvv在线播放| 午夜精品久久久久久久| 一区二区三区视频在线观看| 亚洲国产一区二区视频| 一区二区三区四区激情| 亚洲色图一区二区三区| 一区二区三区影院| 亚洲精品美国一| 一级做a爱片久久| 日本大胆欧美人术艺术动态| 日本伊人色综合网| 日韩电影在线一区| 精品一区在线看| 国内精品伊人久久久久av影院| 国产专区综合网| 91在线国内视频| 91久久免费观看| 欧美人伦禁忌dvd放荡欲情| 欧美一卡2卡3卡4卡| 宅男在线国产精品| 欧美mv日韩mv亚洲| 国产精品女同一区二区三区| 成人欧美一区二区三区黑人麻豆| 中文字幕在线不卡一区| 香蕉影视欧美成人| 美女视频免费一区| 国产一区二区三区四区五区美女| 日韩视频永久免费| 欧美成人精品3d动漫h| 国产欧美日韩中文久久| 亚洲国产精品麻豆| 美女在线一区二区| 久久99久国产精品黄毛片色诱| 懂色一区二区三区免费观看| 97国产一区二区| 欧美久久一区二区| 国产精品午夜在线| 亚洲aaa精品| 久久精品国产久精国产爱| 成人avav在线| 欧美剧在线免费观看网站| 日韩一区二区三区高清免费看看| 国产日韩精品一区二区三区在线| 亚洲三级免费观看| 亚洲欧美日韩人成在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品一区二区不卡| 91亚洲精品乱码久久久久久蜜桃| 日韩一级成人av| 国产精品久久久久永久免费观看| 香蕉成人啪国产精品视频综合网| 国产成人亚洲综合a∨猫咪| 一本到一区二区三区| 精品人伦一区二区色婷婷| 一级女性全黄久久生活片免费| 久久99深爱久久99精品| 91视频你懂的| 欧美极品少妇xxxxⅹ高跟鞋| 午夜一区二区三区在线观看| 九一九一国产精品| 欧美美女喷水视频| 中文字幕欧美激情一区| 亚洲永久精品国产| a美女胸又www黄视频久久| 日韩视频免费直播| 五月婷婷久久综合| 99国产一区二区三精品乱码| 亚洲影视在线观看| av中文字幕在线不卡| 日韩免费观看2025年上映的电影| ●精品国产综合乱码久久久久| 激情综合色播激情啊| 欧美日韩午夜在线视频| 久久精品日产第一区二区三区高清版| 日韩一区在线免费观看| 国产精品一区二区在线看| 欧美性大战xxxxx久久久| 国产精品短视频| 国产精品一区二区免费不卡| 91精品啪在线观看国产60岁| 亚洲精品第1页| 99精品视频在线观看免费| 日本一区二区三区四区| 国产一区在线精品| 7799精品视频| 免费看欧美美女黄的网站| 在线精品国精品国产尤物884a | 一区二区成人在线观看| 成人黄动漫网站免费app| 精品国产三级a在线观看| 精品亚洲porn| 日韩一级黄色片| 免费高清视频精品| 日韩欧美一级二级三级| 青青草成人在线观看| 91视频在线看| 亚洲一区二区偷拍精品| 在线免费观看一区| 日韩久久一区二区| 色婷婷亚洲综合| 有坂深雪av一区二区精品| 91天堂素人约啪| 1区2区3区欧美| 色噜噜狠狠色综合欧洲selulu| 91精品福利在线一区二区三区| 欧美a一区二区| 欧美tickling网站挠脚心| 日韩影院在线观看| 亚洲精品在线观看视频| 国产在线一区二区| 欧美白人最猛性xxxxx69交| 国产精品一区久久久久| 国产欧美一区二区三区鸳鸯浴| 精品无人码麻豆乱码1区2区 | 亚洲香肠在线观看| 欧美视频在线观看一区二区| 午夜精品一区二区三区电影天堂| 日韩欧美色电影| 国产传媒欧美日韩成人| 中文在线一区二区| 欧美日韩激情一区二区| 美腿丝袜亚洲三区| 欧美岛国在线观看| 亚洲综合色婷婷| 1000部国产精品成人观看| 久久美女艺术照精彩视频福利播放| 日韩无一区二区| 成人精品免费视频| 精品在线观看视频| 免费国产亚洲视频| 亚洲mv大片欧洲mv大片精品| 亚洲视频免费在线观看| 色天天综合色天天久久| 精品一区二区三区在线播放 | 亚洲自拍另类综合| 久久99热狠狠色一区二区| 色综合天天天天做夜夜夜夜做| 国产精品福利一区| 成人国产精品视频| 奇米色一区二区| 国产精品久久久久桃色tv| 91精品蜜臀在线一区尤物| 波多野结衣中文一区| 麻豆极品一区二区三区| 亚洲天堂2014| 久久亚洲捆绑美女| 欧美日韩国产一区| 成人免费毛片片v| 奇米888四色在线精品| 一级日本不卡的影视| 国产欧美综合在线观看第十页| 在线综合+亚洲+欧美中文字幕| 99久久婷婷国产综合精品电影 | 亚洲欧美日韩精品久久久久| 欧美大片拔萝卜| 欧美精品少妇一区二区三区|