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

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

?? c語言庫函數(s類字母) - 1.txt

?? C函數速查
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
函數名: 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);  

   return 0;  
}  
   
   

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

#include <stdio.h>  

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合视频网| 成人av在线电影| 日韩亚洲欧美在线| 日韩avvvv在线播放| 欧美绝品在线观看成人午夜影视| 亚洲成人久久影院| 欧美喷潮久久久xxxxx| 久久国产精品色婷婷| 久久久www成人免费无遮挡大片| 成人午夜av电影| 亚洲免费观看高清完整版在线观看熊| 日本乱码高清不卡字幕| 视频一区二区欧美| 久久婷婷色综合| 99精品欧美一区二区三区综合在线| 一区二区在线观看免费视频播放| 欧美精品乱人伦久久久久久| 国产一区二区三区四区在线观看| 中文字幕 久热精品 视频在线 | 亚洲伊人伊色伊影伊综合网| 欧美精三区欧美精三区| 韩国女主播成人在线观看| 日本一区二区成人| 欧洲av一区二区嗯嗯嗯啊| 免费的国产精品| 国产精品国产三级国产普通话三级| 欧美视频在线不卡| 国产精品一区二区在线观看网站| 亚洲精品日日夜夜| 久久综合久久鬼色| 在线国产电影不卡| 国产最新精品精品你懂的| 亚洲黄色av一区| 国产亚洲精品中文字幕| 欧美电影在线免费观看| 成人小视频在线| 日韩精品欧美精品| 亚洲男人的天堂av| 久久综合久色欧美综合狠狠| 97久久精品人人做人人爽| 日韩av一级片| 亚洲欧美一区二区三区国产精品| 精品剧情在线观看| 欧美日韩大陆一区二区| 色哟哟国产精品| 国产麻豆精品在线| 男女视频一区二区| 亚洲在线观看免费| 椎名由奈av一区二区三区| 久久综合久色欧美综合狠狠| 欧美另类z0zxhd电影| av亚洲精华国产精华| 国产乱码一区二区三区| 日韩电影免费在线看| 亚洲愉拍自拍另类高清精品| 国产精品每日更新在线播放网址| 欧美电影精品一区二区| 91精品国产综合久久久蜜臀粉嫩 | 91色视频在线| 国产成人激情av| 国产综合久久久久影院| 日本在线不卡一区| 性做久久久久久| 亚洲欧洲制服丝袜| 自拍偷拍国产精品| 亚洲天堂精品在线观看| 国产精品国产三级国产有无不卡| 国产亚洲一二三区| 久久久99久久| 久久免费精品国产久精品久久久久| 91精品麻豆日日躁夜夜躁| 欧美美女激情18p| 欧美亚男人的天堂| 欧美视频在线一区二区三区| 欧美亚洲国产bt| 欧美日韩成人综合天天影院 | 国产精品二三区| 免费观看一级特黄欧美大片| 午夜激情综合网| 天天色综合天天| 秋霞电影网一区二区| 美女爽到高潮91| 韩国一区二区在线观看| 国产剧情在线观看一区二区| 国产久卡久卡久卡久卡视频精品| 国产精品一区二区不卡| 成人免费视频一区| 99久久综合狠狠综合久久| 一本久道中文字幕精品亚洲嫩| 在线观看91精品国产入口| 欧美视频一区二区在线观看| 4438x亚洲最大成人网| 精品久久一二三区| 中文乱码免费一区二区| 亚洲男人天堂av网| 丝袜a∨在线一区二区三区不卡| 麻豆精品一区二区av白丝在线| 国产麻豆日韩欧美久久| 99久久er热在这里只有精品15| 91福利精品第一导航| 91.麻豆视频| 久久久美女艺术照精彩视频福利播放| 国产欧美精品国产国产专区| 国产精品伦理一区二区| 亚洲在线视频网站| 美日韩黄色大片| 成人午夜伦理影院| 欧美日韩在线一区二区| 欧美精品一区二区三区高清aⅴ| 欧美国产1区2区| 亚洲va国产va欧美va观看| 欧美日韩高清一区二区不卡| 精品久久99ma| 亚洲精品va在线观看| 极品少妇一区二区| 色综合久久中文字幕| 日韩欧美一级片| 亚洲另类春色国产| 九一九一国产精品| 色婷婷久久久亚洲一区二区三区 | 一本一本久久a久久精品综合麻豆| 欧美男男青年gay1069videost| 久久婷婷久久一区二区三区| 亚洲午夜久久久久久久久电影院| 国产在线麻豆精品观看| 欧美日韩国产片| 国产精品丝袜久久久久久app| 日韩精品国产欧美| 93久久精品日日躁夜夜躁欧美| 日韩网站在线看片你懂的| 亚洲欧洲一区二区三区| 久久福利视频一区二区| 欧美在线制服丝袜| 国产精品青草综合久久久久99| 日韩成人午夜电影| 久久久精品国产免费观看同学| 亚洲成av人片一区二区梦乃 | 麻豆久久一区二区| 日本高清不卡在线观看| 久久久精品黄色| 麻豆国产91在线播放| 欧美精品v日韩精品v韩国精品v| 成人欧美一区二区三区小说| 国产成人亚洲综合a∨婷婷图片| 欧美一级在线免费| 亚洲在线视频网站| 91成人免费电影| 国产精品毛片高清在线完整版| 国产精品一区二区三区乱码| 欧美成人vr18sexvr| 天天综合网天天综合色| 欧美日韩一区二区在线观看| 亚洲免费伊人电影| 99久久精品情趣| 成人免费在线播放视频| 成人18视频在线播放| 国产人久久人人人人爽| 国产精品亚洲午夜一区二区三区 | 制服.丝袜.亚洲.中文.综合| 亚洲一区二区三区四区不卡| 91美女视频网站| 亚洲女同女同女同女同女同69| 91亚洲精品一区二区乱码| 国产精品久久久久久久久晋中| 成人91在线观看| 亚洲欧洲成人av每日更新| 99久久精品情趣| 亚洲精品写真福利| 欧美在线影院一区二区| 亚洲国产成人tv| 在线不卡欧美精品一区二区三区| 亚洲大片在线观看| 欧美精品高清视频| 秋霞电影网一区二区| 精品国产三级电影在线观看| 国产在线麻豆精品观看| 国产亚洲一区二区三区在线观看| 成人永久看片免费视频天堂| 国产精品久久久久久久久免费相片| 不卡一二三区首页| 一区二区三区在线播放| 欧美精品乱码久久久久久| 免费高清不卡av| 国产亚洲美州欧州综合国| 久久―日本道色综合久久| 国产黄色精品网站| 亚洲欧洲精品一区二区三区| 在线一区二区三区四区五区| 日日摸夜夜添夜夜添精品视频| 精品久久久久香蕉网| gogo大胆日本视频一区| 亚洲一区二区五区| 日韩欧美在线网站| 成人aaaa免费全部观看| 亚洲成人在线免费| 久久久亚洲精华液精华液精华液 | 国产人成亚洲第一网站在线播放 | 成人免费毛片app| 亚洲一区二区三区四区在线观看 | 欧美久久久久久久久中文字幕|