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

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

?? c語言函數(shù)大全(s開頭) (1).txt

?? C下的詳細(xì)開發(fā)資料
?? TXT
?? 第 1 頁 / 共 3 頁
字號(hào):
int result; 

result = setmode(fileno(stdprn), O_TEXT); 
if (result == -1) 
perror("Mode not available\n"); 
else 
printf("Mode successfully switched\n"); 
return 0; 
} 




函數(shù)名: setpalette 
功 能: 改變調(diào)色板的顏色 
用 法: void far setpalette(int index, int actural_color); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int color, maxcolor, ht; 
int y = 10; 
char msg[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 */ 
} 

maxcolor = getmaxcolor(); 
ht = 2 * textheight("W"); 

/* display the default colors */ 
for (color=1; color<=maxcolor; color++) 
{ 
setcolor(color); 
sprintf(msg, "Color: %d", color); 
outtextxy(1, y, msg); 
y += ht; 
} 

/* wait for a key */ 
getch(); 

/* black out the colors one by one */ 
for (color=1; color<=maxcolor; color++) 
{ 
setpalette(color, BLACK); 
getch(); 
} 

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



函數(shù)名: setrgbpalette 
功 能: 定義IBM8514圖形卡的顏色 
用 法: void far setrgbpalette(int colornum, int red, int green, int blue); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* select a driver and mode that supports the use */ 
/* of the setrgbpalette function. */ 
int gdriver = VGA, gmode = VGAHI, errorcode; 
struct palettetype pal; 
int i, ht, y, xmax; 

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

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

/* create gray scale */ 
for (i=0; i 
setrgbpalette(pal.colors[i], i*4, i*4, i*4); 

/* display the gray scale */ 
ht = getmaxy() / 16; 
xmax = getmaxx(); 
y = 0; 
for (i=0; i 
{ 
setfillstyle(SOLID_FILL, i); 
bar(0, y, xmax, y+ht); 
y += ht; 
} 

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




函數(shù)名: settextjustify 
功 能: 為圖形函數(shù)設(shè)置文本的對齊方式 
用 法: void far settextjustify(int horiz, int vert); 
程序例: 

#include 
#include 
#include 
#include 

/* function prototype */ 
void xat(int x, int y); 

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

/* vertical text justification settings */ 
char *vjust[] = { "LEFT_TEXT", 
"CENTER_TEXT", 
"RIGHT_TEXT" 
}; 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, hj, vj; 
char msg[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; 

/* loop through text justifications */ 
for (hj=LEFT_TEXT; hj<=RIGHT_TEXT; hj++) 
for (vj=LEFT_TEXT; vj<=RIGHT_TEXT; vj++) 
{ 
cleardevice(); 
/* set the text justification */ 
settextjustify(hj, vj); 

/* create a message string */ 
sprintf(msg, "%s %s", hjust[hj], vjust[vj]); 

/* create cross hairs on the screen */ 
xat(midx, midy); 

/* output the message */ 
outtextxy(midx, midy, msg); 
getch(); 
} 

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

/* draw an "x" at (x, y) */ 
void xat(int x, int y) 
{ 
line(x-4, y, x+4, y); 
line(x, y-4, x, y+4); 
} 



函數(shù)名: settextstyle 
功 能: 為圖形輸出設(shè)置當(dāng)前的文本屬性 
用 法: void far settextstyle (int font, int direction, char size); 
程序例: 

#include 
#include 
#include 
#include 

/* the names of the text styles supported */ 
char *fname[] = { "DEFAULT font", 
"TRIPLEX font", 
"SMALL font", 
"SANS SERIF font", 
"GOTHIC font" 
}; 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int style, midx, midy; 
int size = 1; 

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

settextjustify(CENTER_TEXT, CENTER_TEXT); 

/* loop through the available text styles */ 
for (style=DEFAULT_FONT; style<=GOTHIC_FONT; style++) 
{ 
cleardevice(); 
if (style == TRIPLEX_FONT) 
size = 4; 

/* select the text style */ 
settextstyle(style, HORIZ_DIR, size); 

/* output a message */ 
outtextxy(midx, midy, fname[style]); 
getch(); 
} 

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



函數(shù)名: settextstyle 
功 能: 為圖形輸出設(shè)置當(dāng)前的文本屬性 
用 法: void far settextstyle (int font, int direction, char size); 
程序例: 

#include 
#include 
#include 
#include 

/* the names of the text styles supported */ 
char *fname[] = { "DEFAULT font", 
"TRIPLEX font", 
"SMALL font", 
"SANS SERIF font", 
"GOTHIC font" 
}; 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int style, midx, midy; 
int size = 1; 

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

settextjustify(CENTER_TEXT, CENTER_TEXT); 

/* loop through the available text styles */ 
for (style=DEFAULT_FONT; style<=GOTHIC_FONT; style++) 
{ 
cleardevice(); 
if (style == TRIPLEX_FONT) 
size = 4; 

/* select the text style */ 
settextstyle(style, HORIZ_DIR, size); 

/* output a message */ 
outtextxy(midx, midy, fname[style]); 
getch(); 
} 

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



函數(shù)名: settime 
功 能: 設(shè)置系統(tǒng)時(shí)間 
用 法: void settime(struct time *timep); 
程序例: 

#include 
#include 

int main(void) 
{ 
struct time t; 

gettime(&t); 
printf("The current minute is: %d\n", t.ti_min); 
printf("The current hour is: %d\n", t.ti_hour); 
printf("The current hundredth of a second is: %d\n", t.ti_hund); 
printf("The current second is: %d\n", t.ti_sec); 

/* Add one to the minutes struct element and then call settime */ 
t.ti_min++; 
settime(&t); 

return 0; 
} 



函數(shù)名: setusercharsize 
功 能: 為矢量字體改變字符寬度和高度 
用 法: void far setusercharsize(int multx, int dirx, int multy, int diry); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* request autodetection */ 
int gdriver = DETECT, gmode, errorcode; 

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

/* select a text style */ 
settextstyle(TRIPLEX_FONT, HORIZ_DIR, 4); 

/* move to the text starting position */ 
moveto(0, getmaxy() / 2); 

/* output some normal text */ 
outtext("Norm "); 

/* make the text 1/3 the normal width */ 
setusercharsize(1, 3, 1, 1); 
outtext("Short "); 

/* make the text 3 times normal width */ 
setusercharsize(3, 1, 1, 1); 
outtext("Wide"); 

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


函數(shù)名: setvbuf 
功 能: 把緩沖區(qū)與流相關(guān) 
用 法: int setvbuf(FILE *stream, char *buf, int type, unsigned size); 
程序例: 

#include 

int main(void) 
{ 
FILE *input, *output; 
char bufr[512]; 

input = fopen("file.in", "r+b"); 
output = fopen("file.out", "w"); 

/* set up input stream for minimal disk access, 
using our own character buffer */ 
if (setvbuf(input, bufr, _IOFBF, 512) != 0) 
printf("failed to set up buffer for input file\n"); 
else 
printf("buffer set up for input file\n"); 

/* set up output stream for line buffering using space that 
will be obtained through an indirect call to malloc */ 
if (setvbuf(output, NULL, _IOLBF, 132) != 0) 
printf("failed to set up buffer for output file\n"); 
else 
printf("buffer set up for output file\n"); 

/* perform file I/O here */ 

/* close files */ 
fclose(input); 
fclose(output); 
return 0; 
} 




函數(shù)名: setvect 
功 能: 設(shè)置中斷矢量入口 
用 法: void setvect(int intr_num, void interrupt(*isr)()); 
程序例: 

/***NOTE: 
This is an interrupt service routine. You can NOT compile this 
program with Test Stack Overflow turned on and get an executable 
file which will operate correctly. */ 

#include 
#include 
#include 

#define INTR 0X1C /* The clock tick interrupt */ 

void interrupt ( *oldhandler)(void); 

int count=0; 

void interrupt handler(void) 
{ 
/* increase the global counter */ 
count++; 

/* call the old routine */ 
oldhandler(); 
} 

int main(void) 
{ 
/* save the old interrupt vector */ 
oldhandler = getvect(INTR); 

/* install the new interrupt handler */ 
setvect(INTR, handler); 

/* loop until the counter exceeds 20 */ 
while (count < 20) 
printf("count is %d\n",count); 

/* reset the old interrupt handler */ 
setvect(INTR, oldhandler); 

return 0; 
} 



函數(shù)名: setverify 
功 能: 設(shè)置驗(yàn)證狀態(tài) 
用 法: void setverify(int value); 
程序例: 

#include 
#include 
#include 

int main(void) 
{ 
int verify_flag; 

printf("Enter 0 to set verify flag off\n"); 
printf("Enter 1 to set verify flag on\n"); 

verify_flag = getch() - 0; 

setverify(verify_flag); 

if (getverify()) 
printf("DOS verify flag is on\n"); 
else 
printf("DOS verify flag is off\n"); 

return 0; 
} 



函數(shù)名: setviewport 
功 能: 為圖形輸出設(shè)置當(dāng)前視口 
用 法: void far setviewport(int left, int top, int right, 
int bottom, int clipflag); 
程序例: 

#include 
#include 
#include 
#include 

#define CLIP_ON 1 /* activates clipping in viewport */ 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 

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

setcolor(getmaxcolor()); 

/* message in default full-screen viewport */ 
outtextxy(0, 0, "* <-- (0, 0) in default viewport"); 

/* create a smaller viewport */ 
setviewport(50, 50, getmaxx()-50, getmaxy()-50, CLIP_ON); 

/* display some text */ 
outtextxy(0, 0, "* <-- (0, 0) in smaller viewport"); 

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品免费网站| 亚洲资源在线观看| 亚洲天堂久久久久久久| 亚洲二区在线观看| 精品一区二区三区免费毛片爱| 国产在线视视频有精品| 不卡一区二区中文字幕| 欧美日韩免费电影| 久久亚洲免费视频| 亚洲欧美一区二区三区国产精品 | 国模冰冰炮一区二区| 成人动漫在线一区| 91麻豆精品久久久久蜜臀| 国产校园另类小说区| 亚洲制服丝袜一区| 国产精品一级片在线观看| 一本色道久久综合亚洲91 | 国内一区二区视频| 91蝌蚪porny成人天涯| 欧美一区二区三区系列电影| 国产精品全国免费观看高清| 肉肉av福利一精品导航| 不卡一区中文字幕| 欧美成人精品二区三区99精品| 亚洲欧洲成人精品av97| 久久99深爱久久99精品| 欧美综合一区二区| 中文字幕国产精品一区二区| 免费观看一级欧美片| 色香蕉久久蜜桃| 欧美韩国日本综合| 美女爽到高潮91| 在线视频欧美精品| 国产欧美日韩另类一区| 免费在线欧美视频| 91精品福利视频| 中文字幕第一区综合| 美国三级日本三级久久99| 91福利资源站| 亚洲欧洲国产日本综合| 国产精品中文字幕日韩精品 | 精品一区二区三区免费视频| 欧美吻胸吃奶大尺度电影| 国产精品三级av| 国产综合久久久久久久久久久久| 欧美在线看片a免费观看| 国产精品久久久久三级| 国产精品资源站在线| 欧美v日韩v国产v| 天天色综合成人网| 欧美色综合天天久久综合精品| 1024精品合集| 不卡免费追剧大全电视剧网站| 日韩欧美三级在线| 日韩成人一区二区| 欧美日韩精品一区二区在线播放| 亚洲乱码精品一二三四区日韩在线| 成人精品免费视频| 国产精品美女久久久久久2018| 成人教育av在线| 欧美精品一区二| 国产一区二区三区蝌蚪| 欧美精品一区视频| 免费美女久久99| 日韩欧美一级在线播放| 免费在线视频一区| 日韩欧美国产不卡| 精品一区二区免费看| 精品久久国产97色综合| 久久国产精品露脸对白| 337p日本欧洲亚洲大胆精品| 看电影不卡的网站| 精品日韩在线一区| 狠狠色狠狠色综合系列| 精品处破学生在线二十三| 奇米亚洲午夜久久精品| 欧美一区二区三区在线视频| 日韩电影在线看| 欧美成人国产一区二区| 精品一区二区免费视频| 国产视频一区不卡| 成人免费视频免费观看| 最新久久zyz资源站| 91视频观看免费| 亚洲伊人色欲综合网| 欧美日韩一区二区在线观看视频| 亚洲国产精品视频| 9191成人精品久久| 久久精品国产亚洲高清剧情介绍 | 久久99精品国产麻豆不卡| 精品国产3级a| 岛国精品一区二区| 亚洲天堂网中文字| 在线播放中文字幕一区| 久久99精品国产麻豆婷婷| 国产视频视频一区| 91久久精品日日躁夜夜躁欧美| 日韩国产在线观看一区| 久久久噜噜噜久久人人看| 成人高清视频免费观看| 一片黄亚洲嫩模| 日韩一级片网站| 粉嫩在线一区二区三区视频| 亚洲色图视频网| 3d成人h动漫网站入口| 国产酒店精品激情| 亚洲精品国产第一综合99久久| 欧美丰满美乳xxx高潮www| 精品亚洲免费视频| 亚洲丝袜另类动漫二区| 91精品国产综合久久小美女| 国产精品一二三区| 亚洲色图第一区| 91麻豆精品国产无毒不卡在线观看| 国产久卡久卡久卡久卡视频精品| 亚洲图片你懂的| 日韩精品一区二区三区在线播放| 成人污视频在线观看| 亚洲超碰97人人做人人爱| 国产日产欧美一区二区视频| 在线观看视频一区二区 | 久久久久久久久伊人| 一本在线高清不卡dvd| 久久99久久99| 亚洲女同女同女同女同女同69| 日韩一区二区免费在线电影| 成人av免费在线观看| 日本美女一区二区| 亚洲欧美另类小说视频| www激情久久| 欧美人妇做爰xxxⅹ性高电影| 国产福利一区二区三区视频 | 欧美日韩精品系列| 国产精品一区不卡| 五月天激情综合网| 国产精品久久久久一区二区三区共| 91精品国产一区二区人妖| 99re这里都是精品| 麻豆国产精品777777在线| 亚洲精品第一国产综合野| 久久久亚洲精品石原莉奈| 欧美日韩国产片| 色综合久久久久综合体| 国产精品一二三在| 美脚の诱脚舐め脚责91| 亚洲午夜精品在线| 亚洲欧美韩国综合色| 国产日产欧美精品一区二区三区| 欧美日韩国产首页在线观看| 94-欧美-setu| 国产成人精品亚洲日本在线桃色| 日本在线不卡一区| 一区二区免费视频| 最新日韩在线视频| 国产精品私人影院| 2020日本不卡一区二区视频| 欧美一区二区不卡视频| 欧美日韩国产影片| 色香蕉久久蜜桃| 99精品一区二区三区| 国产成+人+日韩+欧美+亚洲| 久久99精品国产91久久来源| 午夜免费久久看| 亚洲一级在线观看| 亚洲欧美偷拍卡通变态| 中文字幕一区二区三区色视频| 久久久久久电影| 精品国产一区二区在线观看| 欧美巨大另类极品videosbest | 亚洲六月丁香色婷婷综合久久| 中文一区在线播放| 国产情人综合久久777777| 久久精品亚洲一区二区三区浴池| 欧美成人国产一区二区| 日韩欧美另类在线| 精品卡一卡二卡三卡四在线| 欧美va亚洲va| 精品国产免费一区二区三区四区| ...中文天堂在线一区| 国产欧美日韩久久| 国产欧美日韩精品a在线观看| 亚洲精品在线网站| 久久久久久免费网| 日本一区二区三区免费乱视频| 国产欧美精品一区二区色综合朱莉| 久久蜜臀中文字幕| 久久九九全国免费| 日本一区二区三区四区在线视频| 国产午夜精品理论片a级大结局| 欧美激情一区二区在线| 国产精品乱人伦| ...xxx性欧美| 亚洲一区在线播放| 日韩电影免费在线看| 激情综合五月婷婷| 国产成人午夜精品5599| 99视频精品全部免费在线| 一本到一区二区三区| 欧美日韩久久久一区| 欧美成人午夜电影|