亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
95精品视频在线| 国产一区二区主播在线| 欧美午夜不卡在线观看免费| 亚洲色图清纯唯美| 欧美亚洲动漫精品| 日韩精品乱码免费| 日韩精品一区二区三区中文精品| 美女视频黄 久久| 337p粉嫩大胆噜噜噜噜噜91av| 国产精品一区二区黑丝| 国产精品天干天干在线综合| 91视频91自| 丝袜美腿亚洲色图| 精品国产乱码久久久久久久| 成人午夜av影视| 亚洲最新视频在线播放| 欧美一区二区福利视频| 国产综合色在线视频区| 日韩一区欧美小说| 欧美一区二区三区的| 国产电影一区二区三区| 亚洲精品免费看| 日韩午夜电影在线观看| 成人在线视频首页| 亚洲电影一级片| 久久青草欧美一区二区三区| 94色蜜桃网一区二区三区| 日韩精品一级中文字幕精品视频免费观看| 欧美va亚洲va香蕉在线| 99久久精品国产毛片| 亚洲成av人片一区二区| 国产喂奶挤奶一区二区三区| 欧美日韩视频在线一区二区| 国产精品白丝av| 亚洲国产精品久久久久秋霞影院| 久久色中文字幕| 欧美少妇bbb| 国产成人精品亚洲日本在线桃色| 亚洲一卡二卡三卡四卡无卡久久| 日韩一区二区三免费高清| 高清不卡一二三区| 视频一区中文字幕国产| 中文字幕一区二区三区不卡 | 午夜激情综合网| 久久久综合网站| 91精品啪在线观看国产60岁| 成人aaaa免费全部观看| 日本亚洲电影天堂| 亚洲色图欧美激情| 久久久亚洲精品一区二区三区 | 久久久久久免费毛片精品| 在线视频中文字幕一区二区| 国产精品影视在线观看| 日精品一区二区| 一区二区三区**美女毛片| 国产婷婷一区二区| 欧美一激情一区二区三区| 91高清视频在线| 99re66热这里只有精品3直播| 久久国产剧场电影| 日本成人在线不卡视频| 亚洲午夜久久久久久久久电影院| 国产精品你懂的在线| 久久久久久久久一| 精品国产凹凸成av人网站| 欧美一区二区免费视频| 精品视频一区三区九区| 欧美午夜电影网| 色系网站成人免费| 91女神在线视频| 不卡av在线免费观看| 国产激情视频一区二区在线观看| 黄网站免费久久| 国产自产v一区二区三区c| 久久99精品一区二区三区| 毛片一区二区三区| 久久不见久久见免费视频7| 麻豆精品久久精品色综合| 轻轻草成人在线| 久久精品国产第一区二区三区| 丝袜美腿高跟呻吟高潮一区| 日韩国产欧美在线播放| 免费在线欧美视频| 黄页网站大全一区二区| 国产尤物一区二区在线| 激情深爱一区二区| 国内国产精品久久| 国产乱子轮精品视频| 国产成人夜色高潮福利影视| 成人av综合在线| www.爱久久.com| 色婷婷av一区二区三区gif| 91丝袜国产在线播放| 在线观看日产精品| 欧美日韩国产乱码电影| 欧美一区二区三区不卡| www国产成人| 亚洲欧美在线另类| 亚洲午夜视频在线观看| 蜜臀va亚洲va欧美va天堂 | 欧美视频一区二区三区在线观看| 欧美性一二三区| 日韩欧美一区二区视频| 久久精品夜色噜噜亚洲a∨| 国产精品沙发午睡系列990531| 国产精品久久久久久久蜜臀 | 亚洲精品乱码久久久久久| 亚洲一区二区三区四区在线观看| 日本在线不卡视频一二三区| 麻豆精品一区二区综合av| 高清av一区二区| 欧美日韩一级黄| 欧美成人伊人久久综合网| 欧美—级在线免费片| 亚洲国产毛片aaaaa无费看| 久久国产尿小便嘘嘘尿| 丁香六月久久综合狠狠色| 欧美日韩亚洲综合一区| 26uuu亚洲综合色欧美| 亚洲综合区在线| 国产一区二区三区精品视频| 色吊一区二区三区| 日韩精品一区二区三区中文不卡 | 亚洲精品一区二区三区福利| 国产精品久久久久影院色老大| 亚洲国产精品久久久男人的天堂| 精品在线播放午夜| 日本久久电影网| 精品国产一区二区在线观看| 一区二区三区高清在线| 国产毛片一区二区| 在线亚洲人成电影网站色www| wwww国产精品欧美| 亚洲福利视频导航| 波多野洁衣一区| 欧美电影免费观看高清完整版在| 亚洲女人****多毛耸耸8| 蜜臀av性久久久久蜜臀av麻豆| 一本一道综合狠狠老| 亚洲精品一区二区三区蜜桃下载 | 日韩午夜av电影| 亚洲精品日韩专区silk| 国产一区二区三区免费观看| 欧美日韩国产影片| 中文字幕在线观看一区| 国产麻豆精品在线| 91精品国产综合久久久蜜臀粉嫩| 国产精品久久久久一区二区三区 | 国产成人精品免费网站| 欧美精品tushy高清| 亚洲男女一区二区三区| 国产成人精品一区二区三区四区| 日韩欧美成人一区| 日本一不卡视频| 欧美日韩久久一区| 亚洲女性喷水在线观看一区| 成人午夜伦理影院| 久久久亚洲综合| 久久99精品一区二区三区| 欧美一级生活片| 午夜一区二区三区视频| 91极品视觉盛宴| 亚洲同性同志一二三专区| 成人在线综合网| 欧美激情一区二区三区| 国产盗摄视频一区二区三区| 久久综合丝袜日本网| 久久国产精品72免费观看| 精品日韩99亚洲| 久久精品国产成人一区二区三区| 在线播放中文一区| 性久久久久久久久久久久| 欧美性xxxxxxxx| 婷婷六月综合亚洲| 欧美剧情电影在线观看完整版免费励志电影 | 国产日韩欧美不卡在线| 国产美女视频91| 欧美国产一区视频在线观看| 国产精品自在在线| 欧美激情自拍偷拍| 99在线精品一区二区三区| 亚洲天堂精品在线观看| 色婷婷久久久综合中文字幕| 亚洲美女视频在线| 欧美调教femdomvk| 无码av免费一区二区三区试看 | 久久不见久久见免费视频7| 欧美大尺度电影在线| 激情欧美一区二区三区在线观看| 久久久久久99精品| 97aⅴ精品视频一二三区| 亚洲韩国精品一区| 日韩一区二区在线观看| 国产在线国偷精品产拍免费yy| 日本一区二区成人在线| 日本高清成人免费播放| 午夜久久久影院| 久久这里只精品最新地址| 成人短视频下载| 亚洲国产欧美另类丝袜|