複製鏈接
請複製以下鏈接發送給好友

conio.h

鎖定
conio.h,不是C標準庫中的頭文件,在C standard library,ISO C 和POSIX標準中均沒有定義。
conio是Console Input/Output(控制枱輸入輸出)的簡寫,其中定義了通過控制枱進行數據輸入數據輸出函數,主要是一些用户通過按鍵盤產生的對應操作,比如getch()函數等等。
大部分DOSWindows 3.xPhar Lap,DOSX,OS/2 or Win32平台上的C編譯器提供此文件,UNIXLinux平台的c編譯器通常不包含此頭文件。
如果需要使用此頭文件,可以從互聯網下載。
中文名
控制枱輸入輸出
外文名
conio.h
性    質
科學
類    別
計算機

目錄

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.h用法

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