conio.h

conio.h

conio.h不是C標準庫中的頭檔案,在C standard library,ISO C 和POSIX標準中均沒有定義。

conio是Console Input/Output(控制台輸入輸出)的簡寫,其中定義了通過控制台進行數據輸入和數據輸出的函式,主要是一些用戶通過按鍵盤產生的對應操作,比如getch()函式等等。

大部分DOSWindows 3.x,Phar Lap,DOSX,OS/2 or Win32平台上的C編譯器提供此檔案,UNIXLinux平台的c編譯器通常不包含此頭檔案。

如果需要使用此頭檔案,可以從網際網路下載。

基本介紹

  • 中文名:控制台輸入輸出
  • 外文名:conio.h
  • 性質:科學
  • 類別:計算機
  • 屬於:編程
包含的函式,用法,

包含的函式

cgets(char*);;cputs(constchar*);cscanf(constchar*,...);inpw(unsignedshort);getch(void);getche(void);kbhit(void);outp(unsignedshort,int);outpw(unsignedshort,unsignedshort);putch(int);ungetch(int);
void_Cdeclclreol(void);void_Cdeclclrscr(void);void_Cdecldelline(void);int_Cdeclgettext(intleft,inttop,intright,intbottom,void*destin);void_Cdeclgettextinfo(structtext_info*r);void_Cdeclgotoxy(intx,inty);void_Cdeclhighvideo(void);void_Cdeclinsline(void);void_Cdecllowvideo(void);int_Cdeclmovetext(intleft,inttop,intright,intbottom,intdestleft,intdesttop);void_Cdeclnormvideo(void);int_Cdeclputtext(intleft,inttop,intright,intbottom,void*source);void_Cdecltextattr(intnewattr);void_Cdecltextbackground(intnewcolor);void_Cdecltextcolor(intnewcolor);void_Cdecltextmode(intnewmode);int_Cdeclwherex(void);int_Cdeclwherey(void);void_Cdeclwindow(intleft,inttop,intright,intbottom);char*_Cdeclcgets(char*str);int_Cdeclcprintf(constchar*format,...);int_Cdeclcputs(constchar*str);int_Cdeclcscanf(constchar*format,...);int_Cdeclgetch(void);int_Cdeclgetche(void);char*_Cdeclgetpass(constchar*prompt);int_Cdeclkbhit(void);int_Cdeclputch(intc);int_Cdeclungetch(intch);

用法

conio庫不僅適用於 Windows 平台,在 Linux 下也可使用.網上已經有兼容包,下載後打開就可使用;而至於Mac的os X中提供的Xcode卻並不支持這一函式館。

相關詞條

熱門詞條

聯絡我們