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

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

?? c語言庫函數(r類字母).txt

?? C函數速查
?? TXT
字號:
函數名: raise  
功  能: 向正在執行的程序發送一個信號  
用  法: int raise(int sig);  
程序例:  

#include <signal.h>  

int main(void)  
{  
   int a, b;  

   a = 10;  
   b = 0;  
   if (b == 0)  
   /* preempt divide by zero error */  
      raise(SIGFPE);  
   a = a / b;  
   return 0;  
}  
   
   

函數名: rand  
功  能: 隨機數發生器  
用  法: void rand(void);  
程序例:  

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

int main(void)  
{  
   int i;  

   printf("Ten random numbers from 0 to 99\n\n");  
   for(i=0; i<10; i++)  
      printf("%d\n", rand() % 100);  
   return 0;  
}  
   
   

函數名: randbrd  
功  能: 隨機塊讀  
用  法: int randbrd(struct fcb *fcbptr, int reccnt);  
程序例:  

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

int main(void)  
{  
   char far *save_dta;  
   char line[80], buffer[256];  
   struct fcb blk;  
   int i, result;  

   /* get user input file name for dta */  
   printf("Enter drive and file name (no path - i.e. a:file.dat)\n");  
   gets(line);  

   /* put file name in fcb */  
   if (!parsfnm(line, &blk, 1))  
   {  
      printf("Error in call to parsfnm\n");  
      exit(1);  
   }  
   printf("Drive #%d  File: %s\n\n", blk.fcb_drive, blk.fcb_name);  

   /* open file with DOS FCB open file */  
   bdosptr(0x0F, &blk, 0);  

   /* save old dta, and set new one */  
   save_dta = getdta();  
   setdta(buffer);  

   /* set up info for the new dta */  
   blk.fcb_recsize = 128;  
   blk.fcb_random = 0L;  
   result = randbrd(&blk, 1);  

   /* check results from randbrd */  
   if (!result)  
      printf("Read OK\n\n");  
   else  
   {  
      perror("Error during read");  
      exit(1);  
   }  

   /* read in data from the new dta */  
   printf("The first 128 characters are:\n");  
   for (i=0; i<128; i++)  
      putchar(buffer[i]);  

   /* restore previous dta */  
   setdta(save_dta);  

   return 0;  
}  
   

函數名: randbwr  
功  能: 隨機塊寫  
用  法: int randbwr(struct fcp *fcbptr, int reccnt);  
程序例:  

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

int main(void)  
{  
   char far *save_dta;  
   char line[80];  
   char buffer[256] = "RANDBWR test!";  
   struct fcb blk;  
   int result;  

   /* get new file name from user */  
   printf("Enter a file name to create (no path - ie. a:file.dat\n");  
   gets(line);  

   /* parse the new file name to the dta */  
   parsfnm(line,&blk,1);  
   printf("Drive #%d  File: %s\n", blk.fcb_drive, blk.fcb_name);  

   /* request DOS services to create file */  
   if (bdosptr(0x16, &blk, 0) == -1)  
   {  
      perror("Error creating file");  
      exit(1);  
   }  

   /* save old dta and set new dta */  
   save_dta = getdta();  
   setdta(buffer);  

   /* write new records */  
   blk.fcb_recsize = 256;  
   blk.fcb_random = 0L;  
   result = randbwr(&blk, 1);  

   if (!result)  
      printf("Write OK\n");  
   else  
   {  
      perror("Disk error");  
      exit(1);  
   }  

   /* request DOS services to close the file */  
   if (bdosptr(0x10, &blk, 0) == -1)  
   {  
      perror("Error closing file");  
      exit(1);  
   }  

   /* reset the old dta */  
   setdta(save_dta);  

   return 0;  
}  
   
   

函數名: random  
功  能: 隨機數發生器  
用  法: int random(int num);  
程序例:  

#include <stdlib.h>  
#include <stdio.h>  
#include <time.h>  

/* prints a random number in the range 0 to 99 */  
int main(void)  
{  
   randomize();  
   printf("Random number in the 0-99 range: %d\n", random (100));  
   return 0;  
}  
   
   

函數名: randomize  
功  能: 初始化隨機數發生器  
用  法: void randomize(void);  
程序例:  

#include <stdlib.h>  
#include <stdio.h>  
#include <time.h>  

int main(void)  
{  
   int i;  

   randomize();  
   printf("Ten random numbers from 0 to 99\n\n");  
   for(i=0; i<10; i++)  
       printf("%d\n", rand() % 100);  
   return 0;  
}  
   
   

函數名: read  
功  能: 從文件中讀  
用  法: int read(int handle, void *buf, int nbyte);  
程序例:  

#include <stdio.h>  
#include <io.h>  
#include <alloc.h>  
#include <fcntl.h>  
#include <process.h>  
#include <sys\stat.h>  

int main(void)  
{  
   void *buf;  
   int handle, bytes;  

   buf = malloc(10);  

/*  
   Looks for a file in the current directory named TEST.$$$ and attempts  
   to read 10 bytes from it.  To use this example you should create the  
   file TEST.$$$  
*/  
   if ((handle =  
      open("TEST.$$$", O_RDONLY | O_BINARY, S_IWRITE | S_IREAD)) == -1)  
   {  
      printf("Error Opening File\n");  
      exit(1);  
   }  

   if ((bytes = read(handle, buf, 10)) == -1) {  
      printf("Read Failed.\n");  
      exit(1);  
   }  
   else {  
      printf("Read: %d bytes read.\n", bytes);  
   }  
   return 0;  
}  
   
   

函數名: realloc  
功  能: 重新分配主存  
用  法: void *realloc(void *ptr, unsigned newsize);  
程序例:  

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

int main(void)  
{  
   char *str;  

   /* allocate memory for string */  
   str = malloc(10);  

   /* copy "Hello" into string */  
   strcpy(str, "Hello");  

   printf("String is %s\n  Address is %p\n", str, str);  
   str = realloc(str, 20);  
   printf("String is %s\n  New address is %p\n", str, str);  

   /* free memory */  
   free(str);  

   return 0;  
}  
   
   

函數名: rectangle  
功  能: 畫一個矩形  
用  法: void far rectangle(int left, int top, int right, int bottom);  
程序例:  

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

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

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

   left = getmaxx() / 2 - 50;  
   top = getmaxy() / 2 - 50;  
   right = getmaxx() / 2 + 50;  
   bottom = getmaxy() / 2 + 50;  

   /* draw a rectangle */  
   rectangle(left,top,right,bottom);  

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

函數名: registerbgidriver  
功  能: 登錄已連接進來的圖形驅動程序代碼  
用  法: int registerbgidriver(void(*driver)(void));  
程序例:  

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

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

   /* register a driver that was added into graphics.lib */  
   errorcode = registerbgidriver(EGAVGA_driver);  

   /* report any registration errors */  
   if (errorcode < 0)  
   {  
      printf("Graphics error: %s\n", grapherrormsg(errorcode));  
      printf("Press any key to halt:");  
      getch();  
      exit(1); /* terminate with an error code */  
   }  

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

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

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

函數名: remove  
功  能: 刪除一個文件  
用  法: int remove(char *filename);  
程序例:  

#include <stdio.h>  

int main(void)  
{  
   char file[80];  

   /* prompt for file name to delete */  
   printf("File to delete: ");  
   gets(file);  

   /* delete the file */  
   if (remove(file) == 0)  
      printf("Removed %s.\n",file);  
   else  
      perror("remove");  

   return 0;  
}  
   
   

函數名: rename  
功  能: 重命名文件  
用  法: int rename(char *oldname, char *newname);  
程序例:  

#include <stdio.h>  

int main(void)  
{  
   char oldname[80], newname[80];  

   /* prompt for file to rename and new name */  
   printf("File to rename: ");  
   gets(oldname);  
   printf("New name: ");  
   gets(newname);  

   /* Rename the file */  
   if (rename(oldname, newname) == 0)  
      printf("Renamed %s to %s.\n", oldname, newname);  
   else  
      perror("rename");  

   return 0;  
}  
   
   

函數名: restorecrtmode  
功  能: 將屏幕模式恢復為先前的imitgraph設置  
用  法: void far restorecrtmode(void);  
程序例:  

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

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

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

   /* output a message */  
   settextjustify(CENTER_TEXT, CENTER_TEXT);  
   outtextxy(x, y, "Press any key to exit graphics:");  
   getch();  

   /* restore system to text mode */  
   restorecrtmode();  
   printf("We're now in text mode.\n");  
   printf("Press any key to return to graphics mode:");  
   getch();  

   /* return to graphics mode */  
   setgraphmode(getgraphmode());  

   /* output a message */  
   settextjustify(CENTER_TEXT, CENTER_TEXT);  
   outtextxy(x, y, "We're back in graphics mode.");  
   outtextxy(x, y+textheight("W"), "Press any key to halt:");  

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

函數名: rewind  
功  能: 將文件指針重新指向一個流的開頭  
用  法: int rewind(FILE *stream);  
程序例:  

#include <stdio.h>  
#include <dir.h>  

 int main(void)  
 {  
    FILE *fp;  
    char *fname = "TXXXXXX", *newname, first;  

    newname = mktemp(fname);  
    fp = fopen(newname,"w+");  
    fprintf(fp,"abcdefghijklmnopqrstuvwxyz");  
    rewind(fp);  
    fscanf(fp,"%c",&first);  
    printf("The first character is: %c\n",first);  
    fclose(fp);  
    remove(newname);  

    return 0;  
}  
   
   

函數名: rmdir  
功  能: 刪除DOS文件目錄  
用  法: int rmdir(char *stream);  
程序例:  

#include <stdio.h>  
#include <conio.h>  
#include <process.h>  
#include <dir.h>  

#define DIRNAME "testdir.$$$"  

int main(void)  
{  
   int stat;  

   stat = mkdir(DIRNAME);  
   if (!stat)  
          printf("Directory created\n");  
   else  
   {  
      printf("Unable to create directory\n");  
      exit(1);  
   }  

   getch();  
   system("dir/p");  
   getch();  

   stat = rmdir(DIRNAME);  
   if (!stat)  
          printf("\nDirectory deleted\n");  
   else  
   {  
   perror("\nUnable to delete directory\n");  
      exit(1);  
   }  

   return 0;  
}  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品一区二区乱码| 日韩小视频在线观看专区| 在线观看中文字幕不卡| 欧美日韩免费一区二区三区视频| 欧美一区二区播放| 久久久久久电影| 亚洲免费在线电影| 日本三级亚洲精品| 成人免费黄色大片| 91精品欧美综合在线观看最新| 欧美丰满少妇xxxxx高潮对白| 精品国产一区久久| 亚洲国产精品久久艾草纯爱| 美女脱光内衣内裤视频久久网站| 成人av中文字幕| 欧美大白屁股肥臀xxxxxx| 中文字幕欧美激情一区| 婷婷开心久久网| 99精品国产热久久91蜜凸| 日韩欧美色综合网站| 成人免费在线观看入口| 免费在线观看日韩欧美| 色婷婷综合激情| 中文字幕的久久| 精品一二三四在线| 欧美丰满嫩嫩电影| 亚洲欧美欧美一区二区三区| 国产乱理伦片在线观看夜一区| 欧美日韩国产另类一区| 久久这里都是精品| 捆绑变态av一区二区三区| 国产成人在线免费| 5566中文字幕一区二区电影| 中文字幕不卡的av| 国产成人精品亚洲日本在线桃色| 69堂精品视频| 亚洲大片一区二区三区| 99re在线视频这里只有精品| 久久久久88色偷偷免费| 蜜臀精品久久久久久蜜臀 | 亚洲欧美中日韩| 国产一区福利在线| 精品久久久三级丝袜| 麻豆精品一二三| 在线91免费看| 性欧美大战久久久久久久久| 欧美亚洲日本国产| 亚洲一区二区三区影院| 一本一本大道香蕉久在线精品| 最新成人av在线| 97se亚洲国产综合在线| 亚洲精品国产精华液| 91成人在线精品| 亚洲电影第三页| 91精品国产综合久久婷婷香蕉| 视频精品一区二区| 欧美成人福利视频| 国内精品久久久久影院薰衣草 | 日韩精品高清不卡| 欧美久久久久中文字幕| 日韩精品一卡二卡三卡四卡无卡| 3atv一区二区三区| 久久精品免费观看| 日韩美女视频一区二区在线观看| 五月天国产精品| 精品捆绑美女sm三区| 国产成人啪免费观看软件| 国产精品色婷婷| 一本一道综合狠狠老| 亚洲第一二三四区| 精品国产伦理网| 91丨国产丨九色丨pron| 综合久久久久久| 日韩一区二区三区免费看| 国产真实乱子伦精品视频| 国产精品久久久久久久岛一牛影视| 国产精品伊人色| 国产精品免费视频网站| 成人午夜私人影院| 日韩成人免费电影| 国产精品美女视频| 欧美美女网站色| 国产成人av自拍| 亚洲国产成人av| 国产农村妇女毛片精品久久麻豆| 91精品91久久久中77777| 麻豆精品一区二区综合av| 一区二区中文字幕在线| 欧美一区二区福利视频| 99精品久久只有精品| 日韩成人午夜精品| 国产精品嫩草影院av蜜臀| 欧美日韩一区二区三区视频| 国产在线观看免费一区| 亚洲综合免费观看高清完整版| 精品国产不卡一区二区三区| 欧美四级电影网| 成人免费不卡视频| 亚洲综合一区在线| 国产丝袜美腿一区二区三区| 欧美亚洲综合另类| 精品无人区卡一卡二卡三乱码免费卡| 亚洲人亚洲人成电影网站色| 久久影视一区二区| 日韩一级免费观看| 欧美图片一区二区三区| 成人美女视频在线观看18| 秋霞国产午夜精品免费视频| 日韩久久一区二区| 欧美国产视频在线| 久久毛片高清国产| 日韩美一区二区三区| 欧美日韩成人综合在线一区二区| 99国产欧美另类久久久精品| 国产一区二区三区久久悠悠色av | 国产调教视频一区| 欧美大片拔萝卜| 日本道色综合久久| 国产最新精品精品你懂的| 日韩avvvv在线播放| 亚洲第一福利一区| 亚洲国产精品久久人人爱| 国产精品每日更新| 国产精品三级电影| 国产丝袜美腿一区二区三区| 久久综合久久久久88| 精品三级在线看| 精品99一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美一区午夜精品| 9191成人精品久久| 欧美精品久久一区二区三区| 欧美无砖砖区免费| 91精品免费在线观看| 日韩一区二区三区四区| 欧美一级黄色片| 欧美成人官网二区| 久久夜色精品国产噜噜av| 久久久久久久久久美女| 亚洲国产高清在线| 自拍偷自拍亚洲精品播放| 亚洲男人天堂一区| 亚洲一区二区三区视频在线播放| 一区二区三区美女| 午夜欧美2019年伦理| 日精品一区二区三区| 视频一区欧美日韩| 日韩精品国产欧美| 老色鬼精品视频在线观看播放| 老司机免费视频一区二区| 国产精品综合久久| av亚洲精华国产精华| 欧美色网站导航| 欧美v亚洲v综合ⅴ国产v| 国产拍揄自揄精品视频麻豆| 亚洲日本一区二区三区| 亚洲精品ww久久久久久p站| 亚洲444eee在线观看| 国内精品伊人久久久久影院对白| 成人v精品蜜桃久久一区| 欧美在线影院一区二区| 日韩午夜激情电影| 国产丝袜欧美中文另类| 一区二区三区波多野结衣在线观看| 一区二区三区不卡在线观看| 蜜臀av一级做a爰片久久| 国产超碰在线一区| 欧洲亚洲精品在线| 欧美mv日韩mv国产网站app| 中文字幕成人网| 亚洲v日本v欧美v久久精品| 精品一区二区综合| 色呦呦日韩精品| 亚洲精品在线观看网站| 天天色图综合网| 色综合天天在线| 久久综合成人精品亚洲另类欧美| 亚洲午夜电影网| 日本乱码高清不卡字幕| 欧美精彩视频一区二区三区| 免费在线看成人av| 欧美高清激情brazzers| 一个色在线综合| 99精品视频在线观看免费| 亚洲国产精品二十页| 国产做a爰片久久毛片| 精品粉嫩aⅴ一区二区三区四区| 亚洲丰满少妇videoshd| 日本乱人伦aⅴ精品| 尤物视频一区二区| 在线亚洲一区观看| 一区二区三区中文在线观看| 97se亚洲国产综合自在线| 国产精品久久久久毛片软件| 国产最新精品精品你懂的| 亚洲精品一区二区三区精华液 | 粉嫩绯色av一区二区在线观看| 日韩精品一区二区三区视频播放 | 国产精品污网站| 成人性生交大片免费看中文|