conio.h不是C标准库中的头文件,在Cstandardlibrary,ISOC和POSIX标准中均没有定义。
conio是ConsoleInput/Output(控制台输入输出)的简写,其中定义了通过控制台进行数据输入和数据输出的函数,主要是一些用户通过按键盘产生的对应操作,比如getch()函数等等。
大部分DOS,Windows3.x,PharLap,DOSX,OS/2orWin32平台上的C编译器提供此文件,UNIX和Linux平台的c编译器通常不包含此头文件。
如果需要使用此头文件,可以从互联网下载。
包含的函数:
1 2 3 4 5 6 7 8 9 10 11 |
cgets(char*);; cputs(constchar*); cscanf(constchar*,...); inpw(unsignedshort); getch(void); getche(void); kbhit(void); outp(unsignedshort,int); outpw(unsignedshort,unsignedshort); putch(int); ungetch(int); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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); |
1 2 3 4 5 6 7 8 9 10 11 |
cgets(char*);; cputs(constchar*); cscanf(constchar*,...); inpw(unsignedshort); getch(void); getche(void); kbhit(void); outp(unsignedshort,int); outpw(unsignedshort,unsignedshort); putch(int); ungetch(int); |