亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩成人av影视| 国产精品正在播放| 日本最新不卡在线| 国产美女娇喘av呻吟久久| 成人18精品视频| 欧美日韩亚洲丝袜制服| 亚洲精品在线三区| 亚洲精品视频免费看| 精品无人区卡一卡二卡三乱码免费卡| 国产成a人亚洲| 欧美曰成人黄网| 26uuuu精品一区二区| 一区二区三区四区在线免费观看 | 99国产精品久| 88在线观看91蜜桃国自产| 久久久91精品国产一区二区三区| 中文字幕日韩一区二区| 日韩avvvv在线播放| www.亚洲色图| 久久欧美一区二区| 视频一区在线播放| 91福利在线看| 中文字幕av一区二区三区高| 毛片一区二区三区| 欧美色爱综合网| 一色屋精品亚洲香蕉网站| 激情另类小说区图片区视频区| 91精品1区2区| 中文字幕在线观看一区| 久久国产日韩欧美精品| 欧美日韩你懂的| 亚洲曰韩产成在线| 波多野结衣亚洲| 久久久久久**毛片大全| 久草中文综合在线| 日韩午夜av一区| 奇米精品一区二区三区四区| 在线看日本不卡| 亚洲精品国产精华液| 成人免费看片app下载| 精品久久久久一区二区国产| 视频一区二区不卡| 欧美性色aⅴ视频一区日韩精品| 国产精品麻豆视频| 国产福利91精品| 久久久另类综合| 国产精品综合久久| 国产日本欧洲亚洲| 国产一区二区美女诱惑| 久久久久久免费网| 国产精品羞羞答答xxdd| 国产欧美综合在线| 成人毛片老司机大片| 中文字幕在线播放不卡一区| 99精品久久免费看蜜臀剧情介绍 | 欧美精品丝袜中出| 婷婷开心激情综合| 欧美电影一区二区| 久久电影网电视剧免费观看| 日韩午夜av一区| 国产成人精品一区二区三区网站观看| 日韩免费一区二区三区在线播放| 日韩精品一级二级| 日韩精品一区二区三区在线观看 | 一区二区欧美国产| 在线观看成人小视频| 亚洲妇熟xx妇色黄| 亚洲精品在线电影| 风间由美一区二区av101| 亚洲欧美在线视频观看| 一本一本大道香蕉久在线精品 | 亚洲乱码国产乱码精品精可以看 | 一区二区三区**美女毛片| 欧美网站大全在线观看| 免费看黄色91| 国产欧美综合色| 欧美色视频在线| 久久国产精品区| 国产精品久久777777| 欧美日韩一区二区不卡| 久久精品99国产精品| 国产精品久久久久四虎| 欧美日韩在线播放一区| 久久国产精品色| 精品国产乱码久久| 一本久久综合亚洲鲁鲁五月天| 天堂在线亚洲视频| 欧美高清在线一区| 欧美巨大另类极品videosbest | 精品国产91久久久久久久妲己 | 成人精品国产一区二区4080| 亚洲午夜免费电影| 久久久久综合网| 6080yy午夜一二三区久久| 青青草成人在线观看| 日本一区二区动态图| 欧美一级在线视频| 99综合电影在线视频| 老色鬼精品视频在线观看播放| 中文字幕字幕中文在线中不卡视频| 4hu四虎永久在线影院成人| 国产乱妇无码大片在线观看| 五月综合激情网| 国产精品久久久久久久久晋中| 7777精品伊人久久久大香线蕉经典版下载 | 18欧美亚洲精品| 日韩一区二区三区视频| 一本到不卡精品视频在线观看 | 国产日本欧洲亚洲| 91精品国产色综合久久不卡蜜臀| 99久久久免费精品国产一区二区| 精品无人码麻豆乱码1区2区| 亚洲成av人片www| 亚洲三级理论片| 欧美激情一区二区| 精品av久久707| 日韩欧美一级在线播放| 欧美日韩精品高清| 一本色道久久综合亚洲91| 国产美女精品在线| 老司机精品视频在线| 日本伊人午夜精品| 日韩精品一级中文字幕精品视频免费观看| 亚洲视频香蕉人妖| 一区在线播放视频| 日韩一区在线播放| 国产精品超碰97尤物18| 国产精品国产精品国产专区不蜜| 26uuu欧美| 久久综合久久综合久久综合| 日韩精品专区在线| 欧美精品一区二区蜜臀亚洲| 精品国产一区二区亚洲人成毛片| 日韩一区二区视频| 欧美一区中文字幕| 欧美一级专区免费大片| 日韩欧美一区电影| 欧美精品日韩综合在线| 4438成人网| 日韩欧美三级在线| 久久久电影一区二区三区| 久久日韩粉嫩一区二区三区| 久久久久久一级片| 精品国产91久久久久久久妲己| 精品久久久久久久久久久久包黑料 | 日韩精品成人一区二区在线| 日韩国产精品久久| 日产精品久久久久久久性色| 国内久久婷婷综合| 久久国产日韩欧美精品| 极品少妇xxxx偷拍精品少妇| 国产aⅴ综合色| 91福利精品视频| 日韩午夜在线观看| 国产日韩精品一区二区三区| 亚洲免费观看在线观看| 黄色日韩三级电影| 在线亚洲人成电影网站色www| 日韩一区二区免费视频| 亚洲欧美日韩一区| 国产精品18久久久久久久久久久久| 91精品办公室少妇高潮对白| 精品噜噜噜噜久久久久久久久试看 | 日韩成人免费电影| 99re热这里只有精品免费视频| 日韩欧美国产系列| 亚洲综合丁香婷婷六月香| 国产一本一道久久香蕉| 欧美日韩国产三级| 亚洲日本va午夜在线影院| 国产在线视视频有精品| 91.麻豆视频| 一区二区激情小说| aa级大片欧美| 久久嫩草精品久久久精品一| 日韩精品一卡二卡三卡四卡无卡| 91亚洲午夜精品久久久久久| 久久免费国产精品| 免费成人在线影院| 欧美日韩国产成人在线免费| 亚洲精品成人少妇| 91小视频在线观看| 国产精品乱人伦中文| 国产精品538一区二区在线| 日韩精品在线看片z| 日韩av网站免费在线| 欧美卡1卡2卡| 亚洲va中文字幕| 欧美人狂配大交3d怪物一区| 亚洲综合免费观看高清在线观看| 99精品久久久久久| 亚洲视频电影在线| 亚洲精品在线免费播放| 蜜臀va亚洲va欧美va天堂| 欧美日韩亚洲综合一区二区三区| 自拍偷拍亚洲欧美日韩| 成熟亚洲日本毛茸茸凸凹| 国产欧美日韩激情| 波多野结衣精品在线| 亚洲欧洲性图库|