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

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

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

?? C下的詳細開發資料
?? TXT
?? 第 1 頁 / 共 3 頁
字號:
 
函數名: sbrk 
功 能: 改變數據段空間位置 
用 法: char *sbrk(int incr); 
程序例: 

#include 
#include 

int main(void) 
{ 
printf("Changing allocation with sbrk()\n"); 
printf("Before sbrk() call: %lu bytes free\n", 
(unsigned long) coreleft()); 
sbrk(1000); 
printf(" After sbrk() call: %lu bytes free\n", 
(unsigned long) coreleft()); 
return 0; 
} 



函數名: scanf 
功 能: 執行格式化輸入 
用 法: int scanf(char *format[,argument,...]); 
程序例: 

#include 
#include 

int main(void) 
{ 
char label[20]; 
char name[20]; 
int entries = 0; 
int loop, age; 
double salary; 

struct Entry_struct 
{ 
char name[20]; 
int age; 
float salary; 
} entry[20]; 

/* Input a label as a string of characters restricting to 20 characters */ 
printf("\n\nPlease enter a label for the chart: "); 
scanf("%20s", label); 
fflush(stdin); /* flush the input stream in case of bad input */ 

/* Input number of entries as an integer */ 
printf("How many entries will there be? (less than 20) "); 
scanf("%d", &entries); 
fflush(stdin); /* flush the input stream in case of bad input */ 

/* input a name restricting input to only letters upper or lower case */ 
for (loop=0;loop 
{ 
printf("Entry %d\n", loop); 
printf(" Name : "); 
scanf("%[A-Za-z]", entry[loop].name); 
fflush(stdin); /* flush the input stream in case of bad input */ 

/* input an age as an integer */ 
printf(" Age : "); 
scanf("%d", &entry[loop].age); 
fflush(stdin); /* flush the input stream in case of bad input */ 

/* input a salary as a float */ 
printf(" Salary : "); 
scanf("%f", &entry[loop].salary); 
fflush(stdin); /* flush the input stream in case of bad input */ 
} 

/* Input a name, age and salary as a string, integer, and double */ 
printf("\nPlease enter your name, age and salary\n"); 
scanf("%20s %d %lf", name, &age, &salary); 


/* Print out the data that was input */ 
printf("\n\nTable %s\n",label); 
printf("Compiled by %s age %d $%15.2lf\n", name, age, salary); 
printf("-----------------------------------------------------\n"); 
for (loop=0;loop 
printf("%4d | %-20s | %5d | %15.2lf\n", 
loop + 1, 
entry[loop].name, 
entry[loop].age, 
entry[loop].salary); 
printf("-----------------------------------------------------\n"); 
return 0; 
} 



函數名: searchpath 
功 能: 搜索DOS路徑 
用 法: char *searchpath(char *filename); 
程序例: 

#include 
#include 

int main(void) 
{ 
char *p; 

/* Looks for TLINK and returns a pointer 
to the path */ 
p = searchpath("TLINK.EXE"); 
printf("Search for TLINK.EXE : %s\n", p); 

/* Looks for non-existent file */ 
p = searchpath("NOTEXIST.FIL"); 
printf("Search for NOTEXIST.FIL : %s\n", p); 

return 0; 
} 



函數名: sector 
功 能: 畫并填充橢圓扇區 
用 法: void far sector(int x, int y, int stangle, int endangle); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int midx, midy, i; 
int stangle = 45, endangle = 135; 
int xrad = 100, yrad = 50; 

/* 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 the fill patterns */ 
for (i=EMPTY_FILL; i 
{ 
/* set the fill style */ 
setfillstyle(i, getmaxcolor()); 

/* draw the sector slice */ 
sector(midx, midy, stangle, endangle, xrad, yrad); 

getch(); 
} 

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


函數名: segread 
功 能: 讀段寄存器值 
用 法: void segread(struct SREGS *segtbl); 
程序例: 

#include 
#include 

int main(void) 
{ 
struct SREGS segs; 

segread(&segs); 
printf("Current segment register settings\n\n"); 
printf("CS: %X DS: %X\n", segs.cs, segs.ds); 
printf("ES: %X SS: %X\n", segs.es, segs.ss); 

return 0; 
} 



函數名: setactivepage 
功 能: 設置圖形輸出活動頁 
用 法: void far setactivepage(int pagenum); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* select a driver and mode that supports */ 
/* multiple pages. */ 
int gdriver = EGA, gmode = EGAHI, errorcode; 
int x, y, ht; 

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

x = getmaxx() / 2; 
y = getmaxy() / 2; 
ht = textheight("W"); 

/* select the off screen page for drawing */ 
setactivepage(1); 

/* draw a line on page #1 */ 
line(0, 0, getmaxx(), getmaxy()); 

/* output a message on page #1 */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
outtextxy(x, y, "This is page #1:"); 
outtextxy(x, y+ht, "Press any key to halt:"); 

/* select drawing to page #0 */ 
setactivepage(0); 

/* output a message on page #0 */ 
outtextxy(x, y, "This is page #0."); 
outtextxy(x, y+ht, "Press any key to view page #1:"); 
getch(); 

/* select page #1 as the visible page */ 
setvisualpage(1); 

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



函數名: setallpallette 
功 能: 按指定方式改變所有的調色板顏色 
用 法: void far setallpallette(struct palette, far *pallette); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
struct palettetype pal; 
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"); 

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

/* display the default palette 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(); 
} 

/* restore the palette colors */ 
setallpalette(&pal); 

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



函數名: setaspectratio 
功 能: 設置圖形縱橫比 
用 法: void far setaspectratio(int xasp, int yasp); 
程序例: 

#include 
#include 
#include 
#include 

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

/* 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; 
setcolor(getmaxcolor()); 

/* get current aspect ratio settings */ 
getaspectratio(&xasp, &yasp); 

/* draw normal circle */ 
circle(midx, midy, 100); 
getch(); 

/* claer the screen */ 
cleardevice(); 

/* adjust the aspect for a wide circle */ 
setaspectratio(xasp/2, yasp); 
circle(midx, midy, 100); 
getch(); 

/* adjust the aspect for a narrow circle */ 
cleardevice(); 
setaspectratio(xasp, yasp/2); 
circle(midx, midy, 100); 

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



函數名: setbkcolor 
功 能: 用調色板設置當前背景顏色 
用 法: void far setbkcolor(int color); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* select a driver and mode that supports */ 
/* multiple background colors. */ 
int gdriver = EGA, gmode = EGAHI, errorcode; 
int bkcol, maxcolor, x, y; 
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 */ 
} 

/* maximum color index supported */ 
maxcolor = getmaxcolor(); 

/* for centering text messages */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
x = getmaxx() / 2; 
y = getmaxy() / 2; 

/* loop through the available colors */ 
for (bkcol=0; bkcol<=maxcolor; bkcol++) 
{ 
/* clear the screen */ 
cleardevice(); 

/* select a new background color */ 
setbkcolor(bkcol); 

/* output a messsage */ 
if (bkcol == WHITE) 
setcolor(EGA_BLUE); 
sprintf(msg, "Background color: %d", bkcol); 
outtextxy(x, y, msg); 
getch(); 
} 

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



函數名: setblock 
功 能: 修改先前已分配的DOS存儲段大小 
用 法: int setblock(int seg, int newsize); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
unsigned int size, segp; 
int stat; 

size = 64; /* (64 x 16) = 1024 bytes */ 
stat = allocmem(size, &segp); 
if (stat == -1) 
printf("Allocated memory at segment: %X\n", segp); 
else 
{ 
printf("Failed: maximum number of paragraphs available is %d\n", 
stat); 
exit(1); 
} 

stat = setblock(segp, size * 2); 
if (stat == -1) 
printf("Expanded memory block at segment: %X\n", segp); 
else 
printf("Failed: maximum number of paragraphs available is %d\n", 
stat); 

freemem(segp); 

return 0; 
} 



函數名: setbuf 
功 能: 把緩沖區與流相聯 
用 法: void setbuf(FILE *steam, char *buf); 
程序例: 

#include 

/* BUFSIZ is defined in stdio.h */ 
char outbuf[BUFSIZ]; 

int main(void) 
{ 
/* attach a buffer to the standard output stream */ 
setbuf(stdout, outbuf); 

/* put some characters into the buffer */ 
puts("This is a test of buffered output.\n\n"); 
puts("This output will go into outbuf\n"); 
puts("and won't appear until the buffer\n"); 
puts("fills up or we flush the stream.\n"); 

/* flush the output buffer */ 
fflush(stdout); 

return 0; 
} 



函數名: setcbrk 
功 能: 設置Control-break 
用 法: int setcbrk(int value); 
程序例: 

#include 
#include 
#include 

int main(void) 
{ 
int break_flag; 

printf("Enter 0 to turn control break off\n"); 
printf("Enter 1 to turn control break on\n"); 

break_flag = getch() - 0; 

setcbrk(break_flag); 

if (getcbrk()) 
printf("Cntrl-brk flag is on\n"); 
else 
printf("Cntrl-brk flag is off\n"); 
return 0; 
} 




函數名: setcolor 
功 能: 設置當前畫線顏色 
用 法: void far setcolor(int color); 
程序例: 

#include 
#include 
#include 
#include 

int main(void) 
{ 
/* select a driver and mode that supports */ 
/* multiple drawing colors. */ 
int gdriver = EGA, gmode = EGAHI, errorcode; 
int color, maxcolor, x, y; 
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 */ 
} 

/* maximum color index supported */ 
maxcolor = getmaxcolor(); 

/* for centering text messages */ 
settextjustify(CENTER_TEXT, CENTER_TEXT); 
x = getmaxx() / 2; 
y = getmaxy() / 2; 

/* loop through the available colors */ 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
玉足女爽爽91| 国产成人综合视频| 欧美日韩免费一区二区三区 | bt7086福利一区国产| 国产精品美女一区二区三区| 成人免费观看视频| 国产精品美女久久福利网站| 99精品视频在线播放观看| 亚洲女同ⅹxx女同tv| 欧美日韩激情一区二区三区| 日本女优在线视频一区二区 | 92精品国产成人观看免费| 一区二区三区毛片| 制服丝袜一区二区三区| 国产一区二区不卡老阿姨| 国产精品视频看| 亚洲免费观看在线观看| 丰满放荡岳乱妇91ww| 一区二区中文字幕在线| 欧美日韩免费一区二区三区视频| 美女脱光内衣内裤视频久久网站| 亚洲欧美乱综合| 欧美精品九九99久久| 精品一区二区久久| 亚洲色图欧美激情| 日韩欧美在线综合网| 99久久综合国产精品| 亚洲成人自拍一区| 亚洲国产精品ⅴa在线观看| 在线视频综合导航| 精彩视频一区二区| 亚洲激情一二三区| 久久色中文字幕| 欧美中文字幕一区二区三区| 国内国产精品久久| 亚洲激情自拍偷拍| 欧美经典三级视频一区二区三区| 欧美三级日韩三级国产三级| 首页综合国产亚洲丝袜| 色视频欧美一区二区三区| 成人av在线电影| 欧美精品一区二区三区高清aⅴ| 99久久精品国产导航| 久久99久久99精品免视看婷婷| 一区在线中文字幕| 精品国产乱码久久久久久浪潮| 色综合色综合色综合色综合色综合| 青青草97国产精品免费观看无弹窗版| 国产精品久久久久影院| 欧美xxxxx牲另类人与| 在线观看亚洲一区| 不卡电影一区二区三区| 激情深爱一区二区| 香蕉成人啪国产精品视频综合网| 国产精品素人一区二区| 精品欧美一区二区在线观看| 欧美日韩国产乱码电影| voyeur盗摄精品| 国产乱子伦视频一区二区三区 | 成人免费视频caoporn| 欧美色视频在线观看| 国产精品午夜电影| 精品奇米国产一区二区三区| 欧美色网站导航| 91久久奴性调教| 成人黄色小视频| 成人黄色电影在线 | 欧美高清视频在线高清观看mv色露露十八| 国产盗摄一区二区| 国产馆精品极品| 国产精品亚洲一区二区三区妖精| 免费日韩伦理电影| 亚洲国产精品久久久久婷婷884| 国产精品毛片久久久久久| 久久综合色综合88| 欧美一级在线视频| 日韩精品一区在线| 欧美电视剧在线看免费| 精品欧美乱码久久久久久| 日韩一级片在线播放| 精品少妇一区二区| 国产日韩欧美高清在线| 欧美mv和日韩mv的网站| 色综合咪咪久久| 亚洲午夜激情网页| 亚洲高清免费视频| 日韩和的一区二区| 久久丁香综合五月国产三级网站| 蜜臀av一区二区三区| 国内成人自拍视频| 成人美女视频在线观看18| 99久久精品情趣| 欧美午夜片在线观看| 91精品国产高清一区二区三区| 91精品国产综合久久福利软件| 精品国产露脸精彩对白| 久久蜜桃一区二区| 国产精品人妖ts系列视频| 亚洲三级电影网站| 日韩激情一区二区| 国产美女精品一区二区三区| 成人avav在线| 欧美日本一道本在线视频| 精品毛片乱码1区2区3区| 久久久久久久综合色一本| 中文久久乱码一区二区| 国产精品国产三级国产普通话99 | 成人免费一区二区三区视频| 国产精品视频观看| 一区二区三区中文字幕精品精品| 亚洲夂夂婷婷色拍ww47| 久久国产精品72免费观看| 东方欧美亚洲色图在线| 在线视频一区二区三区| 精品99999| 国产精品国产a级| 免费成人在线网站| 99视频一区二区| 日韩精品一区二区三区四区视频| 国产精品伦理一区二区| 日本午夜精品视频在线观看| 不卡视频一二三| 日韩欧美精品在线视频| 亚洲欧洲中文日韩久久av乱码| 美女性感视频久久| 色狠狠色狠狠综合| www激情久久| 亚洲国产一区二区a毛片| 国产一区二区免费在线| 欧美系列在线观看| 欧美国产日本视频| 久草在线在线精品观看| 精品视频1区2区3区| 一区二区三区精品| 捆绑调教一区二区三区| 91视视频在线观看入口直接观看www | 在线播放欧美女士性生活| 国产精品天美传媒| 六月婷婷色综合| 欧美午夜寂寞影院| 最新国产精品久久精品| 久久99热狠狠色一区二区| 欧美午夜一区二区三区免费大片| 日本一区二区成人在线| 久久精品国产一区二区三| 欧美老年两性高潮| 一区二区三区精品| proumb性欧美在线观看| 国产色一区二区| 久久99久久99| 日韩一区二区在线看| 亚洲一二三区不卡| 一本色道a无线码一区v| 中文字幕一区在线观看视频| 国产一区二区主播在线| 久久久久99精品国产片| 日本午夜一本久久久综合| 欧美日韩一级二级| 性做久久久久久免费观看欧美| 色婷婷久久久综合中文字幕 | 日韩精品一区二区三区中文精品| 午夜电影久久久| 欧美在线免费观看视频| 亚洲卡通欧美制服中文| 91免费观看视频在线| 亚洲免费在线看| 97se狠狠狠综合亚洲狠狠| 中文字幕综合网| 色综合天天综合网国产成人综合天| 中文在线免费一区三区高中清不卡| 国产一区二区三区观看| 性做久久久久久免费观看欧美| 在线中文字幕一区| 激情六月婷婷久久| 蓝色福利精品导航| 久久综合九色综合97婷婷| 久久9热精品视频| 亚洲精品一区二区三区精华液| 日韩欧美亚洲国产另类| 天堂成人免费av电影一区| 99久久综合精品| 亚洲同性gay激情无套| 3d动漫精品啪啪1区2区免费| 国产精品一区二区久久精品爱涩| 夜夜嗨av一区二区三区| 久久久午夜精品理论片中文字幕| 99久久精品国产一区| 久久精品久久99精品久久| 亚洲免费观看高清完整| 精品久久久影院| 在线观看日韩电影| 国产成人av电影在线播放| 午夜视频在线观看一区二区| 国产日韩三级在线| 制服.丝袜.亚洲.中文.综合| 99久久综合狠狠综合久久| 久久99热99| 日日骚欧美日韩| 亚洲欧美电影一区二区| 久久婷婷成人综合色|