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

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

?? c函數之s.txt

?? C常用函數 多了解一些有好處的
?? TXT
字號:
函數名: sbrk 
功 能: 改變數據段空間位置 
用 法: char *sbrk(int incr); 
程序例: 

#include <stdio.h> 
#include <alloc.h> 

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 <stdio.h> 
#include <conio.h> 

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<entries;++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<entries;++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 <stdio.h> 
#include <dir.h> 

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 <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, 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<USER_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 <stdio.h> 
#include <dos.h> 

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 <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

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 <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; 
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 <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

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 <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

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 <dos.h> 
#include <alloc.h> 
#include <stdio.h> 
#include <stdlib.h> 

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); <b

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美综合在线精品| 国产精品网曝门| 一区二区久久久久| 欧美日韩国产色站一区二区三区| 日韩激情一二三区| 国产亚洲制服色| 欧美亚洲日本国产| 韩国av一区二区三区在线观看| 26uuu色噜噜精品一区二区| 成人激情电影免费在线观看| 香蕉成人伊视频在线观看| 日韩免费视频线观看| 成人午夜av影视| 日韩福利电影在线观看| 中文字幕免费一区| 日韩一级免费观看| 成人av网站在线观看| 性做久久久久久| 日本一区二区免费在线| 欧美日韩电影在线播放| 国产美女在线观看一区| 亚洲精品国产无套在线观| 欧美一级国产精品| 91丨九色丨蝌蚪富婆spa| 久久激情综合网| 亚洲精选视频在线| 久久久午夜精品理论片中文字幕| 在线影视一区二区三区| 成人性生交大片| 久久av老司机精品网站导航| 亚洲精品综合在线| 欧美成人一区二区三区在线观看| 欧美性一二三区| 成人白浆超碰人人人人| 日本欧美加勒比视频| 亚洲欧美日韩国产综合在线| 久久久久久久久久看片| 91精品国产高清一区二区三区 | 一区二区三区中文字幕| 久久精品人人爽人人爽| 欧美tickle裸体挠脚心vk| 在线免费观看成人短视频| 国产mv日韩mv欧美| 精品一区二区综合| 天天av天天翘天天综合网| 亚洲人午夜精品天堂一二香蕉| 精品对白一区国产伦| 欧美肥妇bbw| 欧美日韩成人综合在线一区二区| 91网站在线观看视频| 国产精品538一区二区在线| 久久激情五月激情| 另类人妖一区二区av| 视频一区二区国产| 亚洲成人精品影院| 亚洲一区二区三区四区五区中文 | 91精品国产综合久久精品图片| 欧美久久久影院| 欧美一级在线观看| 日韩精品中文字幕在线不卡尤物| 2022国产精品视频| 欧美高清在线一区| 亚洲愉拍自拍另类高清精品| 亚洲成人在线观看视频| 日本欧美一区二区| 国产成人精品免费在线| 91麻豆精品在线观看| 3atv一区二区三区| 久久免费看少妇高潮| 亚洲天堂成人在线观看| 午夜亚洲福利老司机| 久久不见久久见中文字幕免费| 国产乱妇无码大片在线观看| 99re热这里只有精品视频| 欧美久久久久久久久中文字幕| 精品国产自在久精品国产| 欧美经典三级视频一区二区三区| 亚洲欧美另类综合偷拍| 日韩不卡手机在线v区| 丰满白嫩尤物一区二区| 欧美精品一二三| 久久久精品影视| 一区二区三区四区不卡视频| 黄页网站大全一区二区| 色香蕉久久蜜桃| 日韩欧美亚洲一区二区| 亚洲欧美日韩在线不卡| 久久99精品国产.久久久久久| 99精品欧美一区二区蜜桃免费 | 国产精品久久久久久久久图文区| 午夜视频久久久久久| 成人精品小蝌蚪| 欧美女孩性生活视频| 亚洲区小说区图片区qvod| 视频一区二区三区在线| 成人激情小说乱人伦| 日韩精品一区二区三区三区免费 | 同产精品九九九| 成人激情综合网站| 欧美成人精品二区三区99精品| 亚洲精品菠萝久久久久久久| 国产成人av在线影院| 9191久久久久久久久久久| 中文字幕欧美一| 九九精品视频在线看| 欧美精品色综合| 亚洲精品v日韩精品| 粉嫩aⅴ一区二区三区四区五区 | 亚洲精品菠萝久久久久久久| 国产一二三精品| 日韩免费福利电影在线观看| 一区二区三区四区在线| 成人午夜精品在线| 久久嫩草精品久久久精品一| 日本不卡123| 在线亚洲免费视频| 国产精品久久夜| 国产精品正在播放| 久久婷婷国产综合精品青草| 日韩精品亚洲一区| 欧美日韩亚洲综合| 艳妇臀荡乳欲伦亚洲一区| 成人精品高清在线| 国产精品美女久久久久aⅴ | 99精品热视频| 中文字幕五月欧美| 成人手机电影网| 久久精品在这里| 国产精品77777| 国产欧美一区二区精品性| 精品亚洲成a人| 精品久久免费看| 国产精品一区二区在线观看网站 | 成人精品免费网站| 国产欧美一区二区精品久导航| 经典三级在线一区| 精品国产制服丝袜高跟| 国产综合久久久久久鬼色| 欧美精品一区男女天堂| 国精产品一区一区三区mba视频| 精品国产乱码久久久久久浪潮| 奇米精品一区二区三区在线观看一| 国产日韩精品一区二区三区| 2024国产精品| 亚洲精品国产一区二区三区四区在线| av在线播放成人| 亚洲天堂免费看| 欧美羞羞免费网站| 日韩精品福利网| 欧美日韩一区二区电影| 亚洲成av人片在线观看无码| 欧美三级欧美一级| 日本不卡在线视频| 精品国产乱码久久| 成人蜜臀av电影| 亚洲综合久久av| 欧美老女人第四色| 国产一区二区免费看| 精品sm在线观看| 日韩二区三区四区| 亚洲一区二区三区四区五区中文| 最新国产成人在线观看| 中文字幕欧美激情一区| 久久99精品一区二区三区| 精品国产髙清在线看国产毛片| 国产在线观看一区二区| 国产精品国产三级国产| 欧美视频三区在线播放| 狠狠狠色丁香婷婷综合激情| 中文字幕五月欧美| 欧美日韩免费高清一区色橹橹| 久久精品久久综合| 中文字幕一区二区三区色视频| 色哦色哦哦色天天综合| 亚洲mv在线观看| 久久久国际精品| 欧美亚洲一区三区| 久久99精品久久久久久动态图| 国产精品人妖ts系列视频| 欧美精选在线播放| 欧美日韩久久久| 国产成人99久久亚洲综合精品| 尤物av一区二区| 精品久久久久久亚洲综合网| 成人国产精品免费网站| 热久久一区二区| 国产精品不卡一区二区三区| 91成人网在线| 国产精品正在播放| 视频一区在线播放| 国产精品高潮呻吟久久| 6080日韩午夜伦伦午夜伦| www.av精品| 蜜臀久久99精品久久久画质超高清| 国产精品美女久久久久久久| 日韩一级免费一区| 欧亚洲嫩模精品一区三区| 成人国产精品视频| 国产综合色在线视频区| 午夜婷婷国产麻豆精品|