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

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

?? caibook16.01

?? 介紹c語言的強勁手冊
?? 01
?? 第 1 頁 / 共 5 頁
字號:
   outtextxy(x, y, "Press a key to close the graphics \
	     system:");   /* wait for a key */
   getch();
   /* closes down the graphics system */
   closegraph();   printf("We're now back in text mode.\n");
   printf("Press any key to halt:");
   getch();
   return 0;
}
函數名: clreol
功  能: 在文本窗口中清除字符到行末
用  法: void clreol(void);
程序例:#include <conio.h>int main(void)
{
   clrscr();
   cprintf("The function CLREOL clears all characters from\
	    the\r\n");
   cprintf("cursor position to the end of the line within\
	    the\r\n");   cprintf("current text window, without moving the cursor.\
	    \r\n");
   cprintf("Press any key to continue . . .");
   gotoxy(14, 4);
   getch();
   clreol();
   getch();
   return 0;
}
函數名: clrscr
功  能: 清除文本模式窗口
用  法: void clrscr(void);
程序例:
#include <conio.h>int main(void)
{
   int i;
   clrscr();
   for (i = 0; i < 20; i++)
      cprintf("%d\r\n", i);
   cprintf("\r\nPress any key to clear screen");
   getch();   clrscr();
   cprintf("The screen has been cleared!");
   getch();
   return 0;
}
函數名: coreleft
功  能: 返回未使用內存的大小
用  法: unsigned coreleft(void);
程序例:
#include <stdio.h>
#include <alloc.h>int main(void)
{
   printf("The difference between the highest allocated \
	   block and\n");
   printf("the top of the heap is: %lu bytes\n\
	  ", (unsigned long) coreleft());
   return 0;
}
函數名: cos
功  能: 余弦函數
用  法: double cos(double x);
程序例:#include <stdio.h>
#include <math.h>int main(void)
{
   double result;
   double x = 0.5;   result = cos(x);   printf("The cosine of %lf is %lf\n", x, result);
   return 0;
}
函數名: cosh
功  能: 雙曲余弦函數
用  法: dluble cosh(double x);
程序例:#include <stdio.h>
#include <math.h>int main(void)
{
   double result;
   double x = 0.5;   result = cosh(x);   printf("The hyperboic cosine of %lf is %lf\n",x,result);
   return 0;
}
函數名: country
功  能: 返回與國家有關的信息
用  法: struct COUNTRY *country( int countrycode,
				 struct country *country);
程序例:#include <dos.h>
#include <stdio.h>#define USA 0int main(void)
{
   struct COUNTRY country_info;   country(USA, &country_info);
   printf("The currency symbol for the USA is: %s\n",
	 country_info.co_curr);
   return 0;
}
函數名: cprintf
功  能: 送格式化輸出至屏幕
用  法: int cprintf(const char *format[, argument, ...]);
程序例:#include <conio.h>int main(void)
{
   /* clear the screen */
   clrscr();   /* create a text window */
   window(10, 10, 80, 25);   /* output some text in the window */
   cprintf("Hello world\r\n");   /* wait for a key */
   getch();
   return 0;
}
函數名: cputs
功  能: 寫字符到屏幕
用  法: void cputs(const char *string);
程序例:#include <conio.h>int main(void)
{
   /* clear the screen */
   clrscr();   /* create a text window */
   window(10, 10, 80, 25);   /* output some text in the window */
   cputs("This is within the window\r\n");   /* wait for a key */
   getch();
   return 0;
}
函數名: _creat, creat
功  能: 創建一個新文件或重寫一個已存在的文件
用  法: int creat (const char *filename, int permiss);
程序例:#include <sys\stat.h>
#include <string.h>
#include <fcntl.h>
#include <io.h>int main(void)
{
   int handle;
   char buf[11] = "0123456789";   /* change the default file mode from text to binary */
   _fmode = O_BINARY;   /* create a binary file for reading and writing */
   handle = creat("DUMMY.FIL", S_IREAD | S_IWRITE);   /* write 10 bytes to the file */
   write(handle, buf, strlen(buf));   /* close the file */
   close(handle);
   return 0;
}
函數名: creatnew
功  能: 創建一個新文件
用  法: int creatnew(const char *filename, int attrib);
程序例:#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <dos.h>
#include <io.h>int main(void)
{
   int handle;   char buf[11] = "0123456789";   /* attempt to create a file that doesn't already exist */
   handle = creatnew("DUMMY.FIL", 0);   if (handle == -1)
      printf("DUMMY.FIL already exists.\n");
   else
   {
      printf("DUMMY.FIL successfully created.\n");
      write(handle, buf, strlen(buf));
      close(handle);
   }   return 0;
}
函數名: creattemp
功  能: 創建一個新文件或重寫一個已存在的文件
用  法: int creattemp(const char *filename, int attrib);
程序例:#include <string.h>
#include <stdio.h>
#include <io.h>int main(void)
{
   int handle;
   char pathname[128];
   strcpy(pathname, "\\");
   /* create a unique file in the root directory */
   handle = creattemp(pathname, 0);
   printf("%s was the unique file created.\n", pathname);
   close(handle);
   return 0;
}
函數名: cscanf
功  能: 從控制臺執行格式化輸入
用  法: int cscanf(char *format[,argument, ...]);
程序例:#include <conio.h>int main(void)
{
   char string[80];   /* clear the screen */
   clrscr();
   /* Prompt the user for input */
   cprintf("Enter a string with no spaces:");   /* read the input */
   cscanf("%s", string);   /* display what was read */
   cprintf("\r\nThe string entered is: %s", string);
   return 0;
}
函數名: ctime
功  能: 把日期和時間轉換為字符串
用  法: char *ctime(const time_t *time);
程序例:#include <stdio.h>
#include <time.h>int main(void)
{
   time_t t;   time(&t);
   printf("Today's date and time: %s\n", ctime(&t));   return 0;
}
函數名: ctrlbrk
功  能: 設置Ctrl-Break處理程序
用  法: void ctrlbrk(*fptr)(void);
程序例:#include <stdio.h>
#include <dos.h>#define ABORT 0int c_break(void)
{
   printf("Control-Break pressed. Program aborting ...\n");
   return (ABORT);}
int main(void)
{
   ctrlbrk(c_break);
   for(;;)
   {  printf("Looping... Press <Ctrl-Break> to quit:\n");
   }
   return 0;
}字母D開頭函數
函數名: delay
功  能: 將程序的執行暫停一段時間(毫秒)
用  法: void delay(unsigned milliseconds);
程序例:
/* Emits a 440-Hz tone for 500 milliseconds */
#include <dos.h>int main(void)
{
   sound(440);
   delay(500);
   nosound();
   return 0;
}
函數名: delline
功  能: 在文本窗口中刪去一行
用  法: void delline(void);
程序例:#include <conio.h>int main(void)
{
   clrscr();
   cprintf("The function DELLINE deletes \
	 the line containing the\r\n");
   cprintf("cursor and moves all lines \
	 below it one line up.\r\n");   cprintf("DELLINE operates within the \
	 currently active text\r\n");
   cprintf("window.  Press any key to \
	 continue . . .");
   gotoxy(1,2);  /* Move the cursor to the
      second line and first column */
   getch();
   delline();
   getch();   return 0;
}
函數名: detectgraph
功  能: 通過檢測硬件確定圖形驅動程序和模式
用  法: void far detectgraph( int far *graphdriver,
			      int far *graphmode);
程序例:#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>/* names of the various cards supported */
char *dname[] = { "requests detection",
	      "a CGA",	      "an MCGA",
	      "an EGA",
	      "a 64K EGA",
	      "a monochrome EGA",
	      "an IBM 8514",
	      "a Hercules monochrome",
	      "an AT&T 6300 PC",
	      "a VGA",
	      "an IBM 3270 PC"
	    };int main(void)
{
   /* returns detected hardware info. */   int gdriver, gmode, errorcode;  /* detect graphics hardware available */
   detectgraph(&gdriver, &gmode);   /* read result of detectgraph call */
   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 */
   }   /* display the information detected */
   clrscr();
   printf("You have %s video display \
	card.\n", dname[gdriver]);
   printf("Press any key to halt:");
   getch();
   return 0;
}
函數名: difftime
功  能: 計算兩個時刻之間的時間差
用  法: double difftime(time_t time2, time_t time1);
程序例:#include <time.h>
#include <stdio.h>
#include <dos.h>
#include <conio.h>int main(void)
{
   time_t first, second;
   clrscr();
   first = time(NULL);  /* Gets system time */   delay(2000);         /* Waits 2 secs */
   second = time(NULL); /* Gets system time
		     again */
   printf("The difference is: %f \
	seconds\n",difftime(second,first));
   getch();
   return 0;
}
函數名: disable
功  能: 屏蔽中斷
用  法: void disable(void);
程序例:/***NOTE: This is an interrupt service
 routine. You cannot compile this program
 with Test Stack Overflow turned on and
 get an executable file that operates
 correctly. */#include <stdio.h>
#include <dos.h>
#include <conio.h>#define INTR 0X1C    /* The clock tick interrupt */void interrupt ( *oldhandler)(void);int count=0;void interrupt handler(void)
{
/* disable interrupts during the handling of
   the interrupt */
   disable();
/* increase the global counter */
   count++;/* reenable interrupts at the end of the
   handler */
   enable();
/* call the old routine */
   oldhandler();
}int main(void)
{
/* save the old interrupt vector */
   oldhandler = getvect(INTR);/* install the new interrupt handler */
   setvect(INTR, handler);/* loop until the counter exceeds 20 */
   while (count < 20)
      printf("count is %d\n",count);/* reset the old interrupt handler */
   setvect(INTR, oldhandler);   return 0;
}
函數名: div
功  能: 將兩個整數相除, 返回商和余數
用  法: div_t (int number, int denom);
程序例:
#include <stdlib.h>
#include <stdio.h>
div_t x;int main(void)
{
   x = div(10,3);
   printf("10 div 3 = %d remainder %d\n", x.quot, x.rem);
   return 0;
}
函數名: dosexterr
功  能: 獲取擴展DOS錯誤信息
用  法: int dosexterr(struct DOSERR *dblkp);
程序例:#include <stdio.h>
#include <dos.h>int main(void)
{
   FILE *fp;
   struct DOSERROR info;   fp = fopen("perror.dat","r");   if (!fp) perror("Unable to open file for
	       reading");
   dosexterr(&info);   printf("Extended DOS error \
	information:\n");
   printf("   Extended error: \
	%d\n",info.exterror);
   printf("            Class: \
	%x\n",info.class);
   printf("           Action: \
	%x\n",info.action);
   printf("      Error Locus: \
	%x\n",info.locus);   return 0;
}
函數名: dostounix
功  能: 轉換日期和時間為UNIX時間格式
用  法: long dostounix( struct date *dateptr,
			struct time *timeptr );
程序例: #include <time.h>
 #include <stddef.h>
 #include <dos.h>
 #include <stdio.h> int main(void)
 {
    time_t t;    struct time d_time;
    struct date d_date;
    struct tm *local;    getdate(&d_date);
    gettime(&d_time);    t = dostounix(&d_date, &d_time);
    local = localtime(&t);
    printf("Time and Date: %s\n", asctime(local));
    return 0;
}
函數名: drawpoly
功  能: 畫多邊形
用  法: void far drawpoly( int numpoints,
			   int far *polypoints );
程序例:#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>int main(void)
{
   /* request auto detection */   int gdriver = DETECT, gmode, errorcode;
   int maxx, maxy;   /* our polygon array */
   int poly[10];   /* 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();
   /* terminate with an error code */
      exit(1);
   }
   maxx = getmaxx();
   maxy = getmaxy();   poly[0] = 20;        /* 1st vertext */
   poly[1] = maxy / 2;   poly[2] = maxx - 20; /* 2nd */
   poly[3] = 20;   poly[4] = maxx - 50; /* 3rd */
   poly[5] = maxy - 20;   poly[6] = maxx / 2;  /* 4th */
   poly[7] = maxy / 2;
/*
   drawpoly doesn't automatically close
   the polygon, so we close it.
*/   poly[8] = poly[0];
   poly[9] = poly[1];   /* draw the polygon */
   drawpoly(5, poly);   /* clean up */
   getch();
   closegraph();
   return 0;
}
函數名: dup
功  能: 復制一個文件句柄
用  法: int dup(int handle);
程序例:#include <string.h>
#include <stdio.h>
#include <conio.h>
#include <io.h>void flush(FILE *stream);int main(void)
{   FILE *fp;
   char msg[] = "This is a test";   /* create a file */
   fp = fopen("DUMMY.FIL", "w");   /* write some data to the file */
   fwrite(msg, strlen(msg), 1, fp);
   clrscr();
   printf("Press any key to flush \
	DUMMY.FIL:");
   getch();   /* flush the data to DUMMY.FIL without
      closing it */
   flush(fp);   printf("\nFile was flushed, Press any \
	key to quit:");
   getch();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av影院| 色婷婷久久99综合精品jk白丝| 成人午夜视频在线| 欧美本精品男人aⅴ天堂| 日本亚洲一区二区| 欧美日本视频在线| 日韩成人免费看| 91精品国产欧美一区二区18| 国产精品素人视频| 色视频一区二区| 亚洲一区二区中文在线| 在线综合+亚洲+欧美中文字幕| 亚洲一区电影777| 日韩一区二区在线免费观看| 蜜臀久久久久久久| 日韩精品中文字幕在线不卡尤物| 国产精品综合二区| 国产精品嫩草影院av蜜臀| 91免费版在线看| 午夜伦欧美伦电影理论片| 欧美一级二级三级蜜桃| 国产精品一二三区在线| 国产精品久久毛片| 欧美理论在线播放| 精品夜夜嗨av一区二区三区| 中文字幕一区二区三区四区 | 久久亚洲二区三区| 国产乱码精品一区二区三| 欧美国产精品一区| 欧美在线观看18| 麻豆精品国产91久久久久久| 在线电影欧美成精品| 国产一区不卡精品| 国产性色一区二区| 日本道色综合久久| 美国三级日本三级久久99| 亚洲日本青草视频在线怡红院 | 亚洲手机成人高清视频| 在线电影院国产精品| 国产精品系列在线播放| 亚洲成a天堂v人片| 中文字幕第一区第二区| 日韩视频在线你懂得| av亚洲产国偷v产偷v自拍| 一区二区三区国产精华| 国产清纯白嫩初高生在线观看91 | 亚洲va欧美va国产va天堂影院| 在线成人av网站| 丁香婷婷综合激情五月色| 亚洲影视在线播放| 久久午夜电影网| 欧美精品三级日韩久久| 国产精品影视在线观看| 亚洲一区二区精品3399| 国产精品丝袜一区| 884aa四虎影成人精品一区| 99热在这里有精品免费| 玖玖九九国产精品| 亚洲国产视频直播| 国产精品国产精品国产专区不片| 日韩视频在线观看一区二区| 7777精品伊人久久久大香线蕉的| 国产酒店精品激情| 韩国一区二区视频| 日韩国产成人精品| 亚洲福利视频导航| 18欧美亚洲精品| xf在线a精品一区二区视频网站| 6080日韩午夜伦伦午夜伦| 99久久99久久综合| 国产成人av影院| 狠狠色丁香婷综合久久| 免费成人av在线播放| 亚洲va韩国va欧美va| 亚洲国产精品影院| 亚洲免费高清视频在线| 国产精品欧美一区二区三区| 精品国产乱码久久| 欧美视频一区二区三区四区| 99精品欧美一区二区三区小说| 美女视频黄 久久| 日韩在线一二三区| 亚洲午夜影视影院在线观看| 亚洲在线一区二区三区| 亚洲国产精品久久久男人的天堂 | 亚洲电影在线播放| 亚洲一区二区四区蜜桃| 亚洲人成小说网站色在线| 亚洲欧美电影一区二区| 亚洲欧洲精品天堂一级 | 亚洲女女做受ⅹxx高潮| 日韩精品中午字幕| 日韩亚洲国产中文字幕欧美| 欧美四级电影网| 欧美伊人久久大香线蕉综合69| 日韩欧美亚洲另类制服综合在线| 欧美精品一区二区三区蜜桃| 欧美成人女星排名| 日本一区二区三区在线不卡| 久久先锋影音av| 亚洲天堂福利av| 一区二区三区免费观看| 亚洲成人免费视| 日韩激情在线观看| 国产一二精品视频| 成人动漫av在线| 在线播放/欧美激情| 精品成人a区在线观看| 中文字幕一区二区三区不卡在线| 亚洲精品国产无套在线观| 亚洲国产精品久久久久婷婷884| 久久99热99| 国产成人av电影在线播放| 国产a级毛片一区| 色婷婷综合久久久久中文一区二区 | 欧美一区二区三区视频免费| 欧美一区二区三区在线观看| 日韩免费视频一区| 久久综合久久综合久久| 亚洲男人电影天堂| 婷婷六月综合亚洲| 粉嫩欧美一区二区三区高清影视| 波多野结衣在线aⅴ中文字幕不卡| 欧美日韩中文字幕一区二区| 日韩三级.com| 亚洲视频在线观看一区| 丝袜美腿亚洲综合| 成人av综合一区| 制服丝袜亚洲播放| 欧美高清在线精品一区| 天天影视网天天综合色在线播放| 成人黄色777网| 欧美一区二区成人| 国产精品理伦片| 午夜视频在线观看一区二区三区| 伊人夜夜躁av伊人久久| 久久国产精品免费| 99精品欧美一区二区蜜桃免费 | 欧美一区二区三区人| 中文字幕一区在线观看| 亚洲视频免费在线观看| 久久99国产精品久久99果冻传媒| 床上的激情91.| 欧美电视剧免费全集观看| 最好看的中文字幕久久| 国产麻豆成人传媒免费观看| 欧美视频在线观看一区| 亚洲色大成网站www久久九九| 久久国产尿小便嘘嘘尿| 欧美乱熟臀69xxxxxx| 国产精品系列在线| 国产精品一区二区在线观看网站| 欧美日韩国产一区| 亚洲在线中文字幕| 欧美中文一区二区三区| 最新国产精品久久精品| 精品亚洲成a人在线观看| 欧美一级精品大片| 亚洲国产日韩a在线播放| 欧美亚洲禁片免费| 国产精品―色哟哟| 成人国产精品免费网站| 精品美女被调教视频大全网站| 奇米色777欧美一区二区| 99久久综合国产精品| 中文字幕久久午夜不卡| 日韩黄色免费电影| 欧美一区二区免费观在线| 亚洲免费在线观看| 色婷婷久久久综合中文字幕| 欧美v国产在线一区二区三区| 午夜成人免费视频| 波多野结衣精品在线| **欧美大码日韩| 国产在线精品一区二区不卡了| 欧美精品777| 日欧美一区二区| 精品视频在线免费| 偷拍与自拍一区| 欧美日韩大陆一区二区| 午夜精品123| 在线成人免费视频| 极品少妇xxxx偷拍精品少妇| 欧美一级二级三级乱码| 国产精品一区2区| 久久亚洲综合色一区二区三区 | 国产一区91精品张津瑜| 91精品久久久久久久91蜜桃| 久久精品国产秦先生| 欧美一区二区三区免费视频 | 欧美日韩在线观看一区二区 | 久久人人97超碰com| 国产精品一区二区视频| 国产夜色精品一区二区av| 99久久精品国产一区二区三区| 亚洲欧洲精品一区二区三区| 欧美日韩精品三区| 一区二区三区电影在线播| 在线电影院国产精品| 亚洲精品中文在线|