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

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

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

?? C語言庫函數集.rar 包含所有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一区二区三区免费野_久草精品视频
91久久精品网| 91麻豆国产自产在线观看| 免费成人结看片| 国产在线精品一区二区夜色| 国产一区二区毛片| 99久久久无码国产精品| 91久久精品一区二区三区| 在线播放日韩导航| 亚洲精品一区二区三区99| 亚洲国产精品黑人久久久| 亚洲最大成人网4388xx| 午夜视频在线观看一区二区| 国产精品一区二区男女羞羞无遮挡 | 欧美日韩午夜影院| 3d成人h动漫网站入口| 中文字幕国产一区| 日韩精品欧美精品| 欧美系列在线观看| 中文字幕字幕中文在线中不卡视频| 亚瑟在线精品视频| 日韩精品一区二区在线观看| 亚洲一区精品在线| 91影院在线观看| 国产精品区一区二区三| 五月天激情综合| 精品视频在线看| 1024成人网| 成人妖精视频yjsp地址| 国产日韩精品一区二区三区在线| 麻豆精品视频在线观看免费| 欧美日韩的一区二区| 亚洲图片自拍偷拍| 91精品国产综合久久香蕉的特点| 亚洲国产日韩一级| 欧美吻胸吃奶大尺度电影| 亚洲成人av资源| 欧美日韩国产三级| 免费一区二区视频| 久久久九九九九| 成人午夜av电影| 亚洲自拍偷拍欧美| 日韩视频在线永久播放| 韩国v欧美v亚洲v日本v| 国产精品私房写真福利视频| 在线精品视频一区二区| 久久成人久久鬼色| 国产日韩av一区| 91麻豆精品视频| 另类小说一区二区三区| 国产欧美日本一区二区三区| 99精品久久只有精品| 亚洲.国产.中文慕字在线| 2019国产精品| 欧美日韩国产另类不卡| 成人亚洲一区二区一| 午夜精品成人在线| 国产精品传媒入口麻豆| 欧美色偷偷大香| 不卡一二三区首页| 美女网站在线免费欧美精品| ...xxx性欧美| 国产精品网曝门| 精品精品国产高清a毛片牛牛| 99久久99精品久久久久久 | 91精品欧美福利在线观看| fc2成人免费人成在线观看播放 | 88在线观看91蜜桃国自产| 国产91在线|亚洲| 日本不卡一二三| 日韩av中文字幕一区二区三区| 亚洲精品免费一二三区| 日韩一区日韩二区| 欧美激情在线一区二区三区| 日韩亚洲欧美综合| 欧美精品粉嫩高潮一区二区| 色婷婷久久99综合精品jk白丝| 国产精品18久久久久久久网站| 久久成人综合网| 粉嫩av一区二区三区| 成人免费黄色在线| av电影在线观看不卡| 成人激情免费电影网址| 99久久精品99国产精品| 色国产精品一区在线观看| 欧美日韩免费电影| 日韩午夜精品电影| 国产欧美日韩三级| 亚洲美女区一区| 三级欧美在线一区| 国产成人亚洲综合a∨婷婷图片| 暴力调教一区二区三区| 欧美日韩夫妻久久| 日韩精品综合一本久道在线视频| 亚洲精品在线观| 亚洲另类在线一区| 老司机精品视频在线| 91丝袜高跟美女视频| 欧美午夜精品久久久| 久久在线观看免费| 亚洲高清免费在线| 国产高清在线观看免费不卡| 在线视频一区二区三| 精品国产乱码久久久久久图片 | 精品国产免费人成在线观看| 国产精品女同互慰在线看| 日韩经典一区二区| 91亚洲资源网| 欧美国产丝袜视频| 免费av成人在线| 欧美日韩国产另类一区| 夜夜嗨av一区二区三区网页| 成人高清免费观看| 精品对白一区国产伦| 午夜免费久久看| 欧美日韩一区小说| 亚洲日本韩国一区| 91最新地址在线播放| 成人欧美一区二区三区黑人麻豆 | 亚洲成人动漫精品| 欧美人与禽zozo性伦| 污片在线观看一区二区| 在线观看国产日韩| 亚洲免费大片在线观看| 91亚洲精品一区二区乱码| 国产亚洲精品bt天堂精选| 国产裸体歌舞团一区二区| 久久久www成人免费毛片麻豆| 青青草国产成人99久久| 日韩精品影音先锋| 精品一二三四区| 欧美无砖砖区免费| 午夜精品福利一区二区蜜股av | 亚洲综合色丁香婷婷六月图片| 不卡电影一区二区三区| 一区二区三区四区不卡视频| 欧美日韩一卡二卡| 日韩不卡在线观看日韩不卡视频| 91麻豆精品国产无毒不卡在线观看| 五月综合激情日本mⅴ| 精品久久久久久久久久久久久久久 | 亚洲欧美日韩国产综合| 在线观看精品一区| 国内精品国产成人国产三级粉色 | 欧美在线观看18| 久久成人免费网| 亚洲一区在线观看网站| 欧美xxxxx裸体时装秀| 成人精品免费视频| 日韩综合一区二区| 欧美国产97人人爽人人喊| 欧美日韩午夜在线| 成人精品高清在线| 国内精品伊人久久久久影院对白| 日本欧美大码aⅴ在线播放| 中文字幕欧美国产| 欧美tickling网站挠脚心| 欧美日韩一区二区三区高清| 99久久精品国产网站| 国产美女娇喘av呻吟久久| 日本aⅴ精品一区二区三区| 亚洲愉拍自拍另类高清精品| 欧美国产日韩在线观看| 国产午夜亚洲精品羞羞网站| 欧美日韩国产片| 有码一区二区三区| 亚洲精品一区二区三区蜜桃下载| 欧美一区二区精品在线| 在线视频你懂得一区| 国产福利91精品| 国产精品888| 99久久亚洲一区二区三区青草| 国产精品一区二区91| 国产精品一区二区久久不卡| 国产乱色国产精品免费视频| 国产一区二区三区四| 国产精品亚洲人在线观看| 国产白丝精品91爽爽久久| 国产suv精品一区二区6| 国产成人亚洲综合色影视| 91免费视频大全| 91精品国产综合久久婷婷香蕉| 日韩免费高清视频| 中文av一区特黄| 午夜视频在线观看一区二区三区| 轻轻草成人在线| 国产露脸91国语对白| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩免费高清一区色橹橹| 91麻豆精品国产91久久久久久久久 | 日韩欧美另类在线| 久久综合狠狠综合久久综合88| 国产精品全国免费观看高清 | 欧美日韩黄视频| 久久久99久久精品欧美| 亚洲资源中文字幕| 成人黄色网址在线观看| 欧美一卡在线观看| 一区二区三区蜜桃| 国产999精品久久| 欧美一卡2卡三卡4卡5免费|