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

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

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

?? C語言庫函數(shù)集.rar 包含所有c語言庫函數(shù)
?? TXT
?? 第 1 頁 / 共 2 頁
字號(hào):
函數(shù)名: sbrk  
功  能: 改變數(shù)據(jù)段空間位置  
用  法: 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;  
}  
   
   

函數(shù)名: scanf  
功  能: 執(zhí)行格式化輸入  
用  法: 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;  
}  
   
   

函數(shù)名: 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;  
}  
   
   

函數(shù)名: sector  
功  能: 畫并填充橢圓扇區(qū)  
用  法: 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;  
}  
   

函數(shù)名: 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;  
}  
   
   

函數(shù)名: setactivepage  
功  能: 設(shè)置圖形輸出活動(dòng)頁  
用  法: 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;  
}  
   
   

函數(shù)名: setallpallette  
功  能: 按指定方式改變所有的調(diào)色板顏色  
用  法: 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;  
}  
   
   

函數(shù)名: setaspectratio  
功  能: 設(shè)置圖形縱橫比  
用  法: 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;  
}  
   
   

函數(shù)名: setbkcolor  
功  能: 用調(diào)色板設(shè)置當(dāng)前背景顏色  
用  法: 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;  
}  
   
   

函數(shù)名: setblock  
功  能: 修改先前已分配的DOS存儲(chǔ)段大小  
用  法: 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;  
}  
   
   

函數(shù)名: setbuf  
功  能: 把緩沖區(qū)與流相聯(lián)  
用  法: 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;  

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品v日韩精品v韩国精品v| 精品一区二区三区免费播放| 久久精品国产一区二区| 欧美一区二区精品在线| 午夜久久久久久| 欧美夫妻性生活| 毛片一区二区三区| 国产视频亚洲色图| voyeur盗摄精品| 亚洲免费视频成人| 欧美日韩精品是欧美日韩精品| 天天操天天色综合| 欧美精品一区二区蜜臀亚洲| 成人永久看片免费视频天堂| 亚洲三级视频在线观看| 欧美日韩一区二区三区四区 | 国产精品18久久久久| 国产女人18水真多18精品一级做| av电影天堂一区二区在线观看| 一区二区三区国产| 日韩一区二区三区三四区视频在线观看 | thepron国产精品| 亚洲一区二区精品久久av| 欧美大片一区二区三区| 成人美女在线视频| 午夜影院在线观看欧美| 欧美v日韩v国产v| 91婷婷韩国欧美一区二区| 婷婷亚洲久悠悠色悠在线播放 | 国产片一区二区| 欧美综合天天夜夜久久| 精品一区二区影视| 亚洲天天做日日做天天谢日日欢 | 国产日韩欧美不卡| 欧洲在线/亚洲| 国产精品自拍在线| 亚洲图片欧美一区| 久久久五月婷婷| 欧美性生交片4| 国产乱妇无码大片在线观看| 亚洲成人精品一区二区| 国产日韩欧美一区二区三区综合| 欧美主播一区二区三区| 亚洲精品国产第一综合99久久| 日本va欧美va欧美va精品| 久久精品亚洲麻豆av一区二区| 99re这里只有精品6| 国产精品成人一区二区艾草| 久久国产婷婷国产香蕉| 国产成人在线色| 性久久久久久久| 欧美日韩小视频| 青青草视频一区| 国产日本欧美一区二区| 欧美日韩国产在线播放网站| 日本欧美加勒比视频| 欧美乱熟臀69xxxxxx| 青青草成人在线观看| 欧美亚洲图片小说| 成人教育av在线| 精品一二三四区| 日韩高清国产一区在线| 亚洲综合男人的天堂| 国产精品久久久久久亚洲伦| 久久久久久**毛片大全| 日韩欧美国产高清| 欧美浪妇xxxx高跟鞋交| 欧洲av一区二区嗯嗯嗯啊| 91免费观看国产| av日韩在线网站| av午夜一区麻豆| 成人永久aaa| 成人中文字幕在线| 大陆成人av片| 高清不卡一二三区| 成人亚洲一区二区一| 国内精品国产成人国产三级粉色| 热久久免费视频| 日韩有码一区二区三区| 日韩经典中文字幕一区| 午夜精品一区二区三区免费视频 | 91福利社在线观看| 欧美高清精品3d| 精品少妇一区二区| 欧美国产日韩a欧美在线观看| 日韩午夜精品电影| 欧美成人精品福利| 精品美女一区二区三区| 久久色中文字幕| 国产蜜臀97一区二区三区| 久久久久久久精| 国产精品欧美极品| 综合在线观看色| 精品国产乱码久久久久久浪潮| 欧美一二三区精品| 久久一日本道色综合| 中国色在线观看另类| 亚洲另类在线一区| 午夜亚洲国产au精品一区二区| 日韩av网站在线观看| 成人欧美一区二区三区黑人麻豆| 国产三级精品在线| 玉米视频成人免费看| 26uuu色噜噜精品一区二区| 一片黄亚洲嫩模| 欧美一区二视频| 一区二区三区 在线观看视频| 亚洲国产wwwccc36天堂| 免费日本视频一区| 成人免费的视频| 欧美日韩国产在线观看| 精品国产一区二区三区久久久蜜月| 久久久国产精品麻豆| 亚洲激情中文1区| 青青草97国产精品免费观看| 国产高清一区日本| 精品视频在线免费| 精品成人在线观看| 亚洲柠檬福利资源导航| 强制捆绑调教一区二区| 国产成人av电影在线观看| 欧美亚洲国产一区在线观看网站| 日韩欧美在线网站| 日韩美女视频19| 九色|91porny| 欧美性xxxxxx少妇| 久久人人97超碰com| 亚洲成人av资源| av在线综合网| 亚洲精品一线二线三线无人区| 亚洲激情综合网| 国产999精品久久久久久| 欧美日韩国产综合草草| 成人免费在线播放视频| 精品系列免费在线观看| 91精品福利视频| 国产日产欧美精品一区二区三区| 亚洲品质自拍视频网站| 欧美影院精品一区| 日本视频免费一区| 日韩欧美色电影| 亚洲国产精品麻豆| 国产麻豆精品在线观看| 欧美精品久久久久久久多人混战| 欧美韩国一区二区| 亚洲国产欧美一区二区三区丁香婷| 国产精品伊人色| 日韩欧美国产精品一区| 伊人色综合久久天天| 成人黄页在线观看| 久久蜜桃av一区精品变态类天堂 | 欧美年轻男男videosbes| 亚洲欧洲国产专区| 国产99精品在线观看| 国产喂奶挤奶一区二区三区| 日本午夜一本久久久综合| 91国产免费观看| 亚洲品质自拍视频| www.在线欧美| 中文字幕欧美日韩一区| 国产精品一区二区三区99| 欧美成人aa大片| 久久国内精品自在自线400部| 欧美日韩国产在线播放网站| 国产精品青草综合久久久久99| 蜜臀久久99精品久久久画质超高清 | 一本久道中文字幕精品亚洲嫩| 136国产福利精品导航| 国产成人免费xxxxxxxx| 国产午夜精品一区二区| 国产精品影音先锋| 制服丝袜在线91| 精品久久一区二区三区| 欧美中文字幕久久| 暴力调教一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲一区二区四区蜜桃| 精品国产凹凸成av人网站| 色综合 综合色| 国产成人午夜精品影院观看视频| 国产精品99久久久久久似苏梦涵 | 91久久免费观看| 亚洲欧美激情小说另类| 91看片淫黄大片一级在线观看| 亚洲手机成人高清视频| 欧美亚洲动漫另类| 亚洲aⅴ怡春院| 激情综合五月天| 国产精品66部| 欧美视频一区二区三区| 亚洲国产综合色| 国产丶欧美丶日本不卡视频| 欧美性大战久久久久久久蜜臀| 亚洲成a天堂v人片| 日韩免费高清av| 国产91清纯白嫩初高中在线观看| 综合激情网...| 777奇米四色成人影色区| 韩国一区二区在线观看| 国产精品毛片大码女人|