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

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

?? caibook16.01

?? 介紹c語言的強勁手冊
?? 01
?? 第 1 頁 / 共 5 頁
字號:
Turbo C 2.0、Borland C++庫函數及用例
字母A開頭函數函數名: abort
功  能: 異常終止一個進程
用  法: void abort(void);
程序例:
#include <stdio.h>
#include <stdlib.h>int main(void)
{
  printf("Calling abort()\n");
  abort();
  return 0; /* This is never reached */
}
函數名: abs
功  能: 求整數的絕對值
用  法: int abs(int i);
程序例:
#include <stdio.h>
#include <math.h>int main(void)
{
 int number = -1234; printf("number:%d absolute value:%d\n",number,abs(number));
 return 0;
}
函數名: absread
功  能: 絕對磁盤扇區讀數據
用  法: int absread( int drive, int nsects, int sectno,
		     void *buffer );
程序例:
/* absread example */
#include <stdio.h>
#include <conio.h>
#include <process.h>
#include <dos.h>int main(void)
{
  int i, strt, ch_out, sector;
  char buf[512];  printf("Insert diskette into drive A press any key\n");
  getch();
  sector = 0;
  if (absread(0, 1, sector, &buf) != 0)
  {  perror("Disk problem");
     exit(1);  }
  printf("Read OK\n");
  strt = 3;
  for (i=0; i<80; i++)
  {  ch_out = buf[strt+i];
     putchar(ch_out);  }
  printf("\n");
  return(0); }
函數名: abswrite
功  能: 絕對磁盤扇區寫數據
用  法: int abswrite( int drive, int nsects, in tsectno,
		      void *buffer);
程序例:
/* abswrite example */
#include <stdio.h>
#include <conio.h>
#include <process.h>
#include <dos.h>int main(void)
{ int i, strt, ch_out, sector;
  char buf[512];  printf("Insert diskette into drive A press any key\n");
  getch();
  sector = 0;
  if (absread(0, 1, sector, &buf) != 0)
  {  perror("Disk problem");
     exit(1);  }
  printf("Read OK\n");
  strt = 3;
  for (i=0; i<80; i++)
  {  ch_out = buf[strt+i];
     putchar(ch_out);  }
  printf("\n");
  return(0);}
函數名: access
功  能: 確定文件的訪問權限
用  法: int access(const char *filename, int amode);
程序例:
#include <stdio.h>
#include <io.h>int file_exists(char *filename);
int main(void)
{ printf("Does NOTEXIST.FIL exist: %s\n",
       file_exists("NOTEXISTS.FIL") ? "YES" : "NO");
  return 0;
}int file_exists(char *filename)
{
  return (access(filename, 0) == 0);
}
函數名: acos
功  能: 反余弦函數
用  法: double acos(double x);
程序例:
#include <stdio.h>
#include <math.h>int main(void)
{ double result;
  double x = 0.5;
  result = acos(x);
  printf("The arc cosine of %lf is %lf\n", x, result);
  return 0;}
函數名: allocmem
功  能: 分配DOS存儲段
用  法: int allocmem(unsigned size, unsigned *seg);
程序例:
#include <dos.h>
#include <alloc.h>
#include <stdio.h>int main(void)
{
  unsigned int size, segp;
  int stat;
  size = 64; /* (64 x 16) = 1024 bytes */
  stat = allocmem(size, &segp);  if (stat == -1)
     printf("Allocated memory at segment: %x\n", segp);
  else
     printf("Failed: maximum number of paragraphs available\
	     is %u\n", stat);
  return 0;
}
函數名: arc
功  能: 畫一弧線
用  法: void far arc( int x,int y,int stangle,int endangle,
		      int radius );
程序例:
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>int main(void)
{  /* request auto detection */
   int gdriver = DETECT, gmode, errorcode;
   int midx, midy;   int stangle = 45, endangle = 135;
   int radius = 100;
   /* initialize graphics and local variables */
   initgraph(&gdriver, &gmode, "");   /* read result of initialization */
   errorcode = graphresult();    /* an error occurred */
   if (errorcode != grOk)
   {
      printf("Graph err: %s\n", grapherrormsg(errorcode));
      printf("Press any key to halt:");
      getch();
      exit(1);    /* terminate with an error code */
   }   midx = getmaxx() / 2;
   midy = getmaxy() / 2;
   setcolor(getmaxcolor());   /* draw arc */
   arc(midx, midy, stangle, endangle, radius);   /* clean up */
   getch();
   closegraph();
   return 0;
}
函數名: asctime
功  能: 轉換日期和時間為ASCII碼
用  法: char *asctime(const struct tm *tblock);
程序例:
#include <stdio.h>
#include <string.h>
#include <time.h>int main(void)
{
   struct tm t;
   char str[80];   /* sample loading of tm structure  */
   t.tm_sec    = 1;  /* Seconds */
   t.tm_min    = 30; /* Minutes */
   t.tm_hour   = 9;  /* Hour */
   t.tm_mday   = 22; /* Day of the Month  */
   t.tm_mon    = 11; /* Month */
   t.tm_year   = 56; /* Year - does not include century */
   t.tm_wday   = 4;  /* Day of the week  */
   t.tm_yday   = 0;  /* Does not show in asctime  */
   t.tm_isdst  = 0;
   /* Is Daylight SavTime; does not show in asctime */
   /* converts structure to null terminated
   string */   strcpy(str, asctime(&t));
   printf("%s\n", str);
   return 0;
}
函數名: asin
功  能: 反正弦函數
用  法: double asin(double x);
程序例:
#include <stdio.h>
#include <math.h>int main(void)
{  double result;
   double x = 0.5;
   result = asin(x);
   printf("The arc sin of %lf is %lf\n", x, result);
   return(0);
}
函數名: assert
功  能: 測試一個條件并可能使程序終止
用  法: void assert(int test);
程序例:
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>struct ITEM {
   int key;
   int value;
};/* add item to list, make sure list is not null */
void additem(struct ITEM *itemptr) {
   assert(itemptr != NULL);
}int main(void)
{
   additem(NULL);
   return 0;
}
函數名: atan
功  能: 反正切函數
用  法: double atan(double x);
程序例:
#include <stdio.h>
#include <math.h>
int main(void)
{  double result;
   double x = 0.5;
   result = atan(x);
   printf("The arc tangent of %lf is %lf\n", x, result);
   return(0);
}
函數名: atan2
功  能: 計算Y/X的反正切值
用  法: double atan2(double y, double x);
程序例:
#include <stdio.h>
#include <math.h>int main(void)
{  double result;
   double x = 90.0, y = 45.0;
   result = atan2(y, x);
   printf("The arc tangent ratio of %lf is %lf\n\
	  ", (y/x),result);
   return 0;
}
函數名: atexit
功  能: 注冊終止函數
用  法: int atexit(atexit_t func);
程序例:
#include <stdio.h>
#include <stdlib.h>void exit_fn1(void)
{ printf("Exit function #1 called\n");
  }void exit_fn2(void)
{ printf("Exit function #2 called\n");
}int main(void)
{
   /* post exit function #1 */
   atexit(exit_fn1);
   /* post exit function #2 */
   atexit(exit_fn2);
   return 0;
}
函數名: atof
功  能: 把字符串轉換成浮點數
用  法: double atof(const char *nptr);
程序例:#include <stdlib.h>
#include <stdio.h>
int main(void)
{  float f;
   char *str = "12345.67";
   f = atof(str);   printf("string = %s float = %f\n", str, f);
   return 0;}
函數名: atoi
功  能: 把字符串轉換成長整型數
用  法: int atoi(const char *nptr);
程序例:
#include <stdlib.h>
#include <stdio.h>int main(void)
{  int n;
   char *str = "12345.67";
   n = atoi(str);
   printf("string = %s integer = %d\n", str, n);
   return 0;
}
函數名: atol
功  能: 把字符串轉換成長整型數
用  法: long atol(const char *nptr);
程序例:
#include <stdlib.h>
#include <stdio.h>int main(void)
{  long l;
   char *str = "98765432";
   l = atol(lstr);
   printf("string = %s integer = %ld\n", str, l);
   return(0);
}字母B開頭函數
函數名: bar
功  能: 畫一個二維條形圖
用  法: void far bar(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 midx, midy, i;   /* initialize graphics and local variables */
   initgraph(&gdriver, &gmode, "");   /* read result of initialization */
   errorcode = graphresult();
   if (errorcode != grOk)  /* an error occurred */
   {
      printf("Graph err: %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 the fill patterns */
   for (i=SOLID_FILL; i<USER_FILL; i++)
   {
      /* set the fill style */
      setfillstyle(i, getmaxcolor());      /* draw the bar */
      bar(midx-50, midy-50, midx+50,
       midy+50);
      getch();
   }
   closegraph();
   return 0;
}
函數名: bar3d
功  能: 畫一個三維條形圖
用  法: void far bar3d( int left, int top, int right,
			int bottom, int depth,
			int topflag);
程序例:
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>int main(void)
{  /* request auto detection */
   int gdriver = DETECT, gmode, errorcode;
   int midx, midy, i;   /* initialize graphics, local variables */
   initgraph(&gdriver, &gmode, "");   /* read result of initialization */
   errorcode = graphresult();
   if (errorcode != grOk)  /* an error occurred */
   {
      printf("Graph err: %s\n", grapherrormsg(errorcode));
      printf("Press any key to halt:");
      getch();
      exit(1); /* terminate with error code */
   }   midx = getmaxx() / 2;
   midy = getmaxy() / 2;
   /* loop through the fill patterns */
   for (i=EMPTY_FILL; i<USER_FILL; i++)
   {
      /* set the fill style */
      setfillstyle(i, getmaxcolor());
      /* draw the 3-d bar */
      bar3d(midx-50, midy-50, midx+50, midy+50, 10, 1);
      getch();   }
   /* clean up */
   closegraph();
   return 0;
}
函數名: bdos
功  能: DOS系統調用
用  法: int bdos(int dosfun,unsigned dosdx,unsigned dosal);
程序例:#include <stdio.h>
#include <dos.h>/* Get current drive as 'A', 'B', ... */
char current_drive(void)
{
   char curdrive;   /* Get current disk as 0, 1, ... */
   curdrive = bdos(0x19, 0, 0);
   return('A' + curdrive);
}int main(void)
{
   printf("The current drive is %c:\n", current_drive());
   return 0;
}
函數名: bdosptr
功  能: DOS系統調用
用  法: int bdosptr( int dosfun, void *argument,
		     unsigned dosal );
程序例:#include <string.h>
#include <stdio.h>
#include <dir.h>
#include <dos.h>
#include <errno.h>
#include <stdlib.h>#define  BUFLEN  80int main(void)
{
   char  buffer[BUFLEN];
   int   test;   printf("Enter full pathname of a directory\n");
   gets(buffer);   test = bdosptr(0x3B,buffer,0);
      if(test)
      {  printf("DOS error message: %d\n", errno);
	       /* See errno.h for error listings */
	 exit (1);
      }   getcwd(buffer, BUFLEN);
   printf("The current directory is: %s\n", buffer);   return 0;
}
函數名: bioscom
功  能: 串行I/O通信
用  法: int bioscom(int cmd, char abyte, int port);
程序例:
#include <bios.h>
#include <conio.h>#define COM1       0
#define DATA_READY 0x100
#define TRUE       1
#define FALSE      0#define SETTINGS ( 0x80 | 0x02 | 0x00 | 0x00)int main(void)
{
   int in, out, status, DONE = FALSE;   bioscom(0, SETTINGS, COM1);
   cprintf("... BIOSCOM [ESC] to exit ...\n");
   while (!DONE)
   {
      status = bioscom(3, 0, COM1);
      if (status & DATA_READY)
       if ((out = bioscom(2, 0, COM1) & 0x7F) != 0)
	  putch(out);       if (kbhit())
       {
	  if ((in = getch()) == '\x1B')
	     DONE = TRUE;
	  bioscom(1, in, COM1);
       }
   }
   return 0;
}
函數名: biosdisk
功  能: 軟硬盤I/O
用  法: int biosdisk( int cmd,int drive,int head,int track,
		      int sector,int nsects, void *buffer);
程序例:#include <bios.h>
#include <stdio.h>int main(void)
{
   int result;
   char buffer[512];   printf("Testing to see if drive a: is ready\n");
   result = biosdisk(4,0,0,0,0,1,buffer);
   result &= 0x02;
   (result) ? (printf("Drive A: Ready\n")) :
	    (printf("Drive A: Not Ready\n"));
   return 0;
}
函數名: biosequip
功  能: 檢查設備
用  法: int biosequip(void);
程序例:#include <bios.h>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色8久久精品久久久久久蜜| 制服视频三区第一页精品| 色域天天综合网| 精品粉嫩aⅴ一区二区三区四区| 中文字幕一区二区三中文字幕| 久久精品免费观看| 在线免费亚洲电影| 国产精品久久网站| 精品一区二区三区在线视频| 欧美日韩一区国产| 亚洲美腿欧美偷拍| 97精品久久久久中文字幕| 久久久久久夜精品精品免费| 免费观看在线综合| 欧美日韩一本到| 亚洲黄色片在线观看| 成人教育av在线| 欧美经典一区二区| 国产河南妇女毛片精品久久久 | 1024亚洲合集| 成人国产精品免费观看动漫 | 欧美日韩精品专区| 亚洲女厕所小便bbb| 波多野结衣中文一区| 久久久精品一品道一区| 国产在线精品免费av| 日韩欧美123| 久久国产生活片100| 91精品国产91久久久久久一区二区 | 国产精品久久毛片a| 国产白丝精品91爽爽久久| 精品国产乱码久久久久久久久 | 亚洲影视在线播放| 91国偷自产一区二区三区观看| 国产精品久久久久久久久晋中| 国产福利91精品一区二区三区| xnxx国产精品| 国产成人午夜99999| 亚洲国产精品成人综合色在线婷婷| 国产麻豆午夜三级精品| 国产婷婷色一区二区三区在线| 国产一区二区视频在线播放| 久久尤物电影视频在线观看| 国产精品亚洲а∨天堂免在线| 国产三级精品在线| 99久久婷婷国产综合精品| 《视频一区视频二区| 色视频成人在线观看免| 国产一区二区三区香蕉| 久久美女艺术照精彩视频福利播放 | 欧美视频一区二区在线观看| 亚洲成a人片在线观看中文| 欧美挠脚心视频网站| 久久成人免费网站| 亚洲国产成人私人影院tom| 91麻豆自制传媒国产之光| 亚洲成人精品一区二区| 欧美成人在线直播| 成人高清在线视频| 亚洲成人激情综合网| 久久午夜免费电影| 色综合欧美在线| 男人的天堂亚洲一区| 中文字幕第一区| 欧美日韩精品欧美日韩精品一综合| 奇米精品一区二区三区在线观看一 | 亚洲激情成人在线| 欧美日韩极品在线观看一区| 国产一区二区三区精品欧美日韩一区二区三区| 国产欧美日韩另类一区| 欧美三级在线播放| 高清日韩电视剧大全免费| 婷婷激情综合网| 国产精品蜜臀av| 91精品国产综合久久精品麻豆| 国产成人精品aa毛片| 日本中文字幕一区| 亚洲私人黄色宅男| 国产日产欧美一区| 欧美精品久久久久久久久老牛影院| 成人黄色在线网站| 精品制服美女丁香| 亚洲国产综合视频在线观看| 国产午夜精品久久久久久免费视 | 精品视频999| 粗大黑人巨茎大战欧美成人| 丝袜亚洲另类欧美| 亚洲欧美在线视频| 久久久久久免费毛片精品| 欧美优质美女网站| 成人a区在线观看| 国产一区视频导航| 秋霞影院一区二区| 亚洲gay无套男同| 亚洲三级免费观看| 国产精品午夜电影| 精品成人免费观看| 欧美成人aa大片| 7777精品伊人久久久大香线蕉完整版 | 欧美三区在线观看| 色婷婷亚洲综合| 91同城在线观看| 岛国一区二区在线观看| 激情综合网最新| 日本成人超碰在线观看| 香蕉影视欧美成人| 亚洲黄色av一区| 亚洲精品你懂的| 男男成人高潮片免费网站| 五月激情丁香一区二区三区| 亚洲成人av中文| 亚洲成人免费视频| 亚洲国产日韩在线一区模特| 亚洲影视资源网| 午夜久久久久久久久久一区二区| 一区二区三区高清不卡| 亚洲精品videosex极品| 亚洲激情第一区| 夜夜夜精品看看| 亚洲 欧美综合在线网络| 五月婷婷激情综合网| 香港成人在线视频| 日韩中文字幕91| 麻豆精品久久久| 国产乱码字幕精品高清av | 伦理电影国产精品| 国产尤物一区二区在线| 风间由美一区二区三区在线观看| 风间由美一区二区av101| 色综合天天综合狠狠| 欧美色中文字幕| 日韩一卡二卡三卡| 国产日韩欧美精品在线| 国产精品久久久久一区| 亚洲第一电影网| 韩国午夜理伦三级不卡影院| 丁香六月综合激情| 欧美私模裸体表演在线观看| 日韩丝袜情趣美女图片| 国产色产综合色产在线视频| 亚洲精品中文在线| 日本欧美一区二区三区乱码| 国产一本一道久久香蕉| 一本色道亚洲精品aⅴ| 在线综合视频播放| 欧美极品美女视频| 亚洲成人av电影在线| 国产一区二区导航在线播放| 不卡电影一区二区三区| 欧美日本一道本在线视频| 日韩精品专区在线影院重磅| 国产精品福利一区| 日韩一区欧美二区| 成人免费va视频| 欧美一区二区三区视频在线| 国产精品免费视频一区| 视频一区中文字幕| 91麻豆精品视频| 久久品道一品道久久精品| 亚洲一区二区三区激情| 国产高清精品网站| 88在线观看91蜜桃国自产| 亚洲欧洲一区二区在线播放| 久久97超碰国产精品超碰| 99久久99久久精品免费看蜜桃| 日韩一区二区在线观看视频播放| 国产精品国产三级国产三级人妇 | 91香蕉国产在线观看软件| 欧美成人精精品一区二区频| 亚洲一区二区免费视频| av电影天堂一区二区在线观看| 欧美大尺度电影在线| 亚洲黄色片在线观看| 成人av免费在线播放| 精品捆绑美女sm三区| 午夜精彩视频在线观看不卡| 97se亚洲国产综合自在线不卡 | 亚洲成人av一区二区三区| 99久久综合色| 欧美国产丝袜视频| 国产一区在线看| 精品国产三级电影在线观看| 国产99久久久精品| 久久婷婷综合激情| 久久成人免费网站| 日韩精品专区在线影院重磅| 日韩精品一卡二卡三卡四卡无卡| 91成人网在线| 一区二区三区色| 日本道色综合久久| 亚洲天堂免费在线观看视频| 成人丝袜高跟foot| 国产日韩三级在线| 懂色av噜噜一区二区三区av | 欧美刺激午夜性久久久久久久| 午夜成人在线视频| 欧美日本高清视频在线观看| 亚洲综合图片区| 欧美午夜不卡在线观看免费| 亚洲国产成人av网|