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

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

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

?? CC語言庫函數 (S類字母)
?? 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一区二区三区免费野_久草精品视频
六月婷婷色综合| 欧洲精品中文字幕| 色一区在线观看| 欧美sm极限捆绑bd| 亚洲一区二区精品视频| 91免费视频网址| 日韩欧美中文字幕一区| 一区二区三区四区不卡视频| 国产精品一区三区| 欧美日韩国产片| 亚洲欧美视频在线观看| 国产一区二区三区精品欧美日韩一区二区三区| 在线观看日韩精品| 亚洲欧美中日韩| 国产精品亚洲第一区在线暖暖韩国| 欧美精品少妇一区二区三区| 亚洲免费视频中文字幕| 播五月开心婷婷综合| 26uuu亚洲婷婷狠狠天堂| 免费在线欧美视频| 欧美日韩成人高清| 亚洲一区二区在线视频| 99久久精品国产麻豆演员表| 国产丝袜在线精品| 国产乱妇无码大片在线观看| 欧美videossexotv100| 午夜精品一区二区三区免费视频| 91黄视频在线| 亚洲自拍偷拍综合| 欧美日韩一区久久| 亚洲国产三级在线| 欧美日韩大陆在线| 日韩中文字幕亚洲一区二区va在线| 欧美视频在线一区| 亚洲成人av免费| 欧美一区永久视频免费观看| 午夜精品久久久久久久久久| 欧美疯狂做受xxxx富婆| 日韩av网站免费在线| 欧美妇女性影城| 美女视频黄频大全不卡视频在线播放| 69堂成人精品免费视频| 色婷婷亚洲综合| 尤物在线观看一区| 欧美日韩亚洲不卡| 久久国产尿小便嘘嘘| 2017欧美狠狠色| 成人综合在线视频| 亚洲精品综合在线| 欧美日韩一区二区三区四区| 婷婷夜色潮精品综合在线| 9191国产精品| 国产福利91精品一区二区三区| 国产亚洲精品aa| 色呦呦日韩精品| 日本最新不卡在线| 日本一区二区三区在线不卡| 一本一道久久a久久精品| 天堂在线亚洲视频| 日韩午夜在线观看视频| 国产69精品一区二区亚洲孕妇| 亚洲欧洲另类国产综合| 欧美精品丝袜中出| 成人精品免费看| 日韩va欧美va亚洲va久久| 久久久久国产免费免费| 91麻豆精品秘密| 久久99精品国产麻豆婷婷洗澡| 国产女人18毛片水真多成人如厕 | 国产精品一区久久久久| 亚洲欧美电影一区二区| 欧美精品少妇一区二区三区| 国产成人福利片| 亚洲一区二区美女| 一区二区三区在线免费播放| 日韩精品一区二区三区在线播放| 成人av午夜影院| 奇米四色…亚洲| 亚洲免费色视频| 久久久精品国产免费观看同学| 色94色欧美sute亚洲线路一ni| 久久精品久久99精品久久| 中文字幕亚洲不卡| 精品国产一区二区三区忘忧草 | 精品亚洲免费视频| 亚洲免费在线视频一区 二区| 日韩欧美国产成人一区二区| 欧洲av一区二区嗯嗯嗯啊| 精久久久久久久久久久| 亚洲1区2区3区视频| 国产精品久久久久久久久果冻传媒| 91精品国产综合久久久久久久| 97久久人人超碰| 国产成人av福利| 久久精品二区亚洲w码| 亚洲永久免费av| 亚洲女同女同女同女同女同69| 久久久精品tv| 精品国产1区2区3区| 日韩一区二区电影网| 欧美群妇大交群中文字幕| 91麻豆精品视频| 91在线观看一区二区| 成人性视频网站| 国产美女久久久久| 国产在线精品视频| 美女视频黄久久| 久久精品国产免费| 全国精品久久少妇| 免费看日韩精品| 蜜芽一区二区三区| 免费观看久久久4p| 蜜臀av在线播放一区二区三区| 午夜欧美视频在线观看| 婷婷亚洲久悠悠色悠在线播放| 亚洲国产精品麻豆| 五月天一区二区| 日韩中文欧美在线| 日本不卡视频一二三区| 麻豆精品一区二区av白丝在线 | 一区二区理论电影在线观看| 成人欧美一区二区三区1314| 亚洲青青青在线视频| 亚洲狠狠丁香婷婷综合久久久| 一区av在线播放| 天使萌一区二区三区免费观看| 日本成人超碰在线观看| 蜜臀av性久久久久蜜臀aⅴ| 久久成人18免费观看| 韩日欧美一区二区三区| 懂色一区二区三区免费观看| 波多野结衣亚洲| 欧美日韩国产首页在线观看| 欧美日韩中字一区| 欧美xxxx老人做受| 国产精品丝袜黑色高跟| 一区二区三区在线观看网站| 日韩在线播放一区二区| 精品一区二区三区欧美| 国产v日产∨综合v精品视频| 9色porny自拍视频一区二区| 欧美日韩一区二区三区免费看| 日韩一区二区视频在线观看| 国产日韩欧美电影| 亚洲综合免费观看高清完整版 | 99视频精品在线| 欧美视频一区二区| 欧美不卡123| 国产精品久久久一本精品| 亚洲第一精品在线| 国产福利精品一区| 欧美日本一区二区在线观看| 久久影音资源网| 亚洲一区二区精品视频| 国产在线不卡一区| 欧洲人成人精品| 国产日韩欧美综合在线| 午夜电影一区二区| 成人国产精品免费网站| 91精品欧美福利在线观看| 国产精品国产精品国产专区不蜜 | 国产调教视频一区| 亚洲6080在线| 91在线播放网址| 久久只精品国产| 性做久久久久久| 91无套直看片红桃| 久久精品欧美日韩| 午夜精品福利久久久| 成人精品视频一区二区三区尤物| 日韩一区二区在线观看视频| 一区二区在线观看免费视频播放| 久草中文综合在线| 欧美精选在线播放| 亚洲美女免费视频| 懂色中文一区二区在线播放| 日韩欧美中文字幕制服| 午夜私人影院久久久久| 91丨九色丨尤物| 国产精品毛片高清在线完整版| 日韩电影在线看| 欧美日韩另类一区| 亚洲精品中文字幕在线观看| 丁香网亚洲国际| 久久久久久久久一| 久久97超碰色| 欧美一区三区二区| 午夜欧美一区二区三区在线播放| 色激情天天射综合网| 日韩理论电影院| 成人精品免费看| 日本一区二区在线不卡| 国产成人一区二区精品非洲| 欧美精品一区二区久久久| 另类小说色综合网站| 这里只有精品免费| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美一区二区三区在线看| 天堂在线亚洲视频| 日韩欧美专区在线|