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

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

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

?? C的函數大全
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
函數名: setjmp  
功  能: 非局部轉移  
用  法: int setjmp(jmp_buf env);  
程序例:  

#include <stdio.h>  
#include <process.h>  
#include <setjmp.h>  

void subroutine(void);  

jmp_buf jumper;  

int main(void)  
{  
   int value;  

   value = setjmp(jumper);  
   if (value != 0)  
   {  
      printf("Longjmp with value %d\n", value);  
      exit(value);  
   }  
   printf("About to call subroutine ... \n");  
   subroutine();  
   return 0;  
}  

void subroutine(void)  
{  
   longjmp(jumper,1);  
}  
   
   

函數名: setlinestyle  
功  能: 設置當前畫線寬度和類型  
用  法: void far setlinestyle(int linestype, unsigned upattern);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <string.h>  
#include <stdio.h>  
#include <conio.h>  

/* the names of the line styles supported */  
char *lname[] = {  
   "SOLID_LINE",  
   "DOTTED_LINE",  
   "CENTER_LINE",  
   "DASHED_LINE",  
   "USERBIT_LINE"  
   };  

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

   int style, midx, midy, userpat;  
   char stylestr[40];  

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

   /* a user defined line pattern */  
   /* binary: "0000000000000001"  */  
   userpat = 1;  

   for (style=SOLID_LINE; style<=USERBIT_LINE; style++)  
   {  
      /* select the line style */  
      setlinestyle(style, userpat, 1);  

      /* convert style into a string */  
      strcpy(stylestr, lname[style]);  

      /* draw a line */  
      line(0, 0, midx-10, midy);  

      /* draw a rectangle */  
      rectangle(0, 0, getmaxx(), getmaxy());  

      /* output a message */  
      outtextxy(midx, midy, stylestr);  

      /* wait for a key */  
      getch();  
      cleardevice();  
   }  

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

函數名: setmem  
功  能: 存值到存儲區  
用  法: void setmem(void *addr, int len, char value);  
程序例:  

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

int main(void)  
{  
   char *dest;  

   dest = calloc(21, sizeof(char));  
   setmem(dest, 20, 'c');  
   printf("%s\n", dest);  

   return 0;  
}  
   
   
   

函數名: setmode  
功  能: 設置打開文件方式  
用  法: int setmode(int handle, unsigned mode);  
程序例:  

#include <stdio.h>  
#include <fcntl.h>  
#include <io.h>  

int main(void)  
{  
   int result;  

   result = setmode(fileno(stdprn), O_TEXT);  
   if (result == -1)  
      perror("Mode not available\n");  
   else  
      printf("Mode successfully switched\n");  
   return 0;  
}  
   
   
   

函數名: setpalette  
功  能: 改變調色板的顏色  
用  法: void far setpalette(int index, int actural_color);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <stdio.h>  
#include <conio.h>  

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

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

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

函數名: setrgbpalette  
功  能: 定義IBM8514圖形卡的顏色  
用  法: void far setrgbpalette(int colornum, int red, int green, int blue);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <stdio.h>  
#include <conio.h>  

int main(void)  
{  
   /* select a driver and mode that supports the use */  
   /* of the setrgbpalette function.                 */  
   int gdriver = VGA, gmode = VGAHI, errorcode;  
   struct palettetype pal;  
   int i, ht, y, xmax;  

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

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

   /* create gray scale */  
   for (i=0; i<pal.size; i++)  
      setrgbpalette(pal.colors[i], i*4, i*4, i*4);  

   /* display the gray scale */  
   ht = getmaxy() / 16;  
   xmax = getmaxx();  
   y = 0;  
   for (i=0; i<pal.size; i++)  
   {  
      setfillstyle(SOLID_FILL, i);  
      bar(0, y, xmax, y+ht);  
      y += ht;  
   }  

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

函數名: settextjustify  
功  能: 為圖形函數設置文本的對齊方式  
用  法: void far settextjustify(int horiz, int vert);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <stdio.h>  
#include <conio.h>  

/* function prototype */  
void xat(int x, int y);  

/* horizontal text justification settings */  
char *hjust[] = { "LEFT_TEXT",  
                  "CENTER_TEXT",  
                  "RIGHT_TEXT"  
                };  

/* vertical text justification settings */  
char *vjust[] = { "LEFT_TEXT",  
    "CENTER_TEXT",  
    "RIGHT_TEXT"  
                };  

int main(void)  
{  
   /* request auto detection */  
   int gdriver = DETECT, gmode, errorcode;  
   int midx, midy, hj, vj;  
   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 */  
   }  

   midx = getmaxx() / 2;  
   midy = getmaxy() / 2;  

   /* loop through text justifications */  
   for (hj=LEFT_TEXT; hj<=RIGHT_TEXT; hj++)  
      for (vj=LEFT_TEXT; vj<=RIGHT_TEXT; vj++)  
      {  
         cleardevice();  
         /* set the text justification */  
         settextjustify(hj, vj);  

         /* create a message string */  
         sprintf(msg, "%s  %s", hjust[hj], vjust[vj]);  

  /* create cross hairs on the screen */  
  xat(midx, midy);  

         /* output the message */  
         outtextxy(midx, midy, msg);  
         getch();  
      }  

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

/* draw an "x" at (x, y) */  
void xat(int x, int y)  
{  
  line(x-4, y, x+4, y);  
  line(x, y-4, x, y+4);  
}  
   
   

函數名: settextstyle  
功  能: 為圖形輸出設置當前的文本屬性  
用  法: void far settextstyle (int font, int direction, char size);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <stdio.h>  
#include <conio.h>  

/* the names of the text styles supported */  
char *fname[] = { "DEFAULT font",  
                  "TRIPLEX font",  
                  "SMALL font",  
                  "SANS SERIF font",  
                  "GOTHIC font"  
                };  

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

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

   settextjustify(CENTER_TEXT, CENTER_TEXT);  

   /* loop through the available text styles */  
   for (style=DEFAULT_FONT; style<=GOTHIC_FONT; style++)  
   {  
      cleardevice();  
      if (style == TRIPLEX_FONT)  
         size = 4;  

      /* select the text style */  
      settextstyle(style, HORIZ_DIR, size);  

      /* output a message */  
      outtextxy(midx, midy, fname[style]);  
      getch();  
   }  

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

函數名: settextstyle  
功  能: 為圖形輸出設置當前的文本屬性  
用  法: void far settextstyle (int font, int direction, char size);  
程序例:  

#include <graphics.h>  
#include <stdlib.h>  
#include <stdio.h>  
#include <conio.h>  

/* the names of the text styles supported */  
char *fname[] = { "DEFAULT font",  
                  "TRIPLEX font",  
                  "SMALL font",  
                  "SANS SERIF font",  
                  "GOTHIC font"  
                };  

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

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

   settextjustify(CENTER_TEXT, CENTER_TEXT);  

   /* loop through the available text styles */  
   for (style=DEFAULT_FONT; style<=GOTHIC_FONT; style++)  
   {  
      cleardevice();  
      if (style == TRIPLEX_FONT)  
         size = 4;  

      /* select the text style */  
      settextstyle(style, HORIZ_DIR, size);  

      /* output a message */  
      outtextxy(midx, midy, fname[style]);  
      getch();  
   }  

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

函數名: settime  
功  能: 設置系統時間  
用  法: void settime(struct time *timep);  
程序例:  

#include <stdio.h>  
#include <dos.h>  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲国产一区二区三区va| 精品国产一区二区三区久久影院 | 91女厕偷拍女厕偷拍高清| 91豆麻精品91久久久久久| 久久久国产精华| 亚洲国产精品久久人人爱蜜臀| 青青草91视频| 色天使色偷偷av一区二区| 久久久激情视频| 水野朝阳av一区二区三区| 97se亚洲国产综合自在线不卡 | 大美女一区二区三区| 欧美日韩亚洲国产综合| 亚洲国产精品传媒在线观看| 三级精品在线观看| 色香色香欲天天天影视综合网| 久久久久久久久久看片| 偷窥少妇高潮呻吟av久久免费| 91碰在线视频| 中文字幕一区在线观看视频| 久久国产生活片100| 欧美日韩亚洲综合在线| 玉米视频成人免费看| 不卡区在线中文字幕| 久久久久久久久久久久久女国产乱 | 在线观看成人小视频| 欧美国产综合一区二区| 久久99精品一区二区三区三区| 欧美日韩一区二区欧美激情| 一区二区三区不卡视频在线观看| www.欧美精品一二区| 国产精品私人影院| 国产精品996| 久久免费视频色| 韩国欧美国产1区| 精品美女一区二区| 捆绑调教一区二区三区| 欧美大尺度电影在线| 裸体在线国模精品偷拍| 日韩三级在线免费观看| 激情成人午夜视频| 国产亚洲短视频| 成人毛片视频在线观看| 国产片一区二区| 99久久精品国产网站| 亚洲天堂av老司机| 欧美婷婷六月丁香综合色| 亚洲成在线观看| 7777精品伊人久久久大香线蕉最新版 | 色噜噜久久综合| 夜夜嗨av一区二区三区四季av | 亚洲视频免费在线观看| 99久久亚洲一区二区三区青草| 国产精品亲子伦对白| 91视视频在线直接观看在线看网页在线看| 国产精品高潮久久久久无| 色综合久久中文综合久久牛| 亚洲国产欧美一区二区三区丁香婷| 欧美日韩精品是欧美日韩精品| 免费精品视频在线| 欧美国产精品一区二区| 91麻豆高清视频| 蜜臀a∨国产成人精品| 日本一区二区三区高清不卡| 一本大道久久a久久综合| 舔着乳尖日韩一区| 久久久99久久| 欧美日韩一级片在线观看| 九九热在线视频观看这里只有精品| 久久精品视频网| 色吧成人激情小说| 韩国在线一区二区| 亚洲香肠在线观看| 国产午夜精品久久久久久久 | 国产一区二区在线影院| 亚洲色欲色欲www| 欧美一二三区精品| 国产精品综合久久| 午夜精品久久久久久久99樱桃| 精品国产sm最大网站| 91免费视频网址| 九九九精品视频| 亚洲国产精品一区二区久久恐怖片| 欧美精品一区二区三区四区 | 视频一区欧美精品| 国产精品久久久久四虎| 91精品国产综合久久精品麻豆| 成人午夜在线播放| 免费高清在线视频一区·| 亚洲精品综合在线| 日本一区二区三区国色天香 | 欧美在线免费观看亚洲| 国产成人在线视频播放| 日韩av电影免费观看高清完整版| 中文字幕一区二区三区在线播放 | 99r国产精品| 精品午夜久久福利影院| 夜夜精品视频一区二区| 中文字幕制服丝袜成人av| 精品国产123| 欧美一级专区免费大片| 欧美色电影在线| 在线观看日产精品| 色综合色综合色综合色综合色综合| 国产伦精品一区二区三区视频青涩 | 日本午夜一本久久久综合| 中文字幕视频一区| 国产清纯美女被跳蛋高潮一区二区久久w | 日韩欧美一卡二卡| 欧美丰满少妇xxxbbb| 在线视频你懂得一区| 色综合一个色综合| 99国内精品久久| 成人av中文字幕| 成人成人成人在线视频| 粉嫩欧美一区二区三区高清影视| 久久99久久99| 国产精品一二三四区| 国产成人aaa| 欧美日韩一区二区三区高清 | 3d动漫精品啪啪1区2区免费| 欧美亚洲国产一区二区三区va| 色婷婷av一区二区三区gif| 91美女片黄在线观看| 91蜜桃在线观看| 欧美日韩国产片| 制服丝袜亚洲精品中文字幕| 9191成人精品久久| 日韩欧美精品在线| 久久网这里都是精品| 久久亚洲二区三区| 国产精品久久福利| 一区二区三区不卡视频在线观看 | 欧美日韩一区三区| 欧美精品自拍偷拍| 欧美精品一区在线观看| 国产精品拍天天在线| 中文字幕一区二区在线观看| 亚洲无线码一区二区三区| 日韩精品成人一区二区在线| 国模冰冰炮一区二区| 成人高清免费观看| 欧美伊人久久大香线蕉综合69 | 99麻豆久久久国产精品免费优播| 91麻豆精品在线观看| 欧美老肥妇做.爰bbww| 亚洲精品一线二线三线无人区| 国产三级久久久| 夜夜爽夜夜爽精品视频| 蜜臀精品一区二区三区在线观看 | 26uuuu精品一区二区| 国产欧美一区二区精品仙草咪| 中文字幕综合网| 日韩制服丝袜先锋影音| 国产黄人亚洲片| 欧美亚日韩国产aⅴ精品中极品| 日韩欧美电影一区| 亚洲人成在线播放网站岛国| 免费在线观看一区二区三区| 成人免费看片app下载| 在线播放中文字幕一区| 国产精品国产自产拍高清av王其 | 91麻豆精品91久久久久同性| 久久久久99精品国产片| 亚洲国产精品久久久久秋霞影院| 久久国产人妖系列| 欧美在线观看你懂的| 欧美激情在线一区二区三区| 亚洲成人资源网| 99久久精品费精品国产一区二区| 日韩一区二区高清| 亚洲国产成人av网| 国产福利一区二区三区| 欧美一区二区三区视频免费| 亚洲色图欧美在线| 国产宾馆实践打屁股91| 欧美一区二区三区日韩视频| 亚洲精品欧美综合四区| a级高清视频欧美日韩| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲一区二区三区在线看| 国产精品18久久久| 亚洲精品一区二区三区影院| 天涯成人国产亚洲精品一区av| 99视频精品在线| 日本一区二区三区四区在线视频| 麻豆精品一二三| 欧美肥妇毛茸茸| 亚洲一区二区欧美| 一本色道a无线码一区v| 欧美国产精品久久| 国产精品一二三区| 精品伦理精品一区| 国产一区二区三区四区五区入口| 欧美一区二区三区视频免费| 污片在线观看一区二区 | 成人h精品动漫一区二区三区| 精品国产乱码久久久久久久 | 欧美日韩成人一区| 一区二区久久久久久|