php .h头文件,conio.h是什么头文件

conio.h是控制台输入输出函数头文件,其中con是控制台Console英文缩写,io是Input/Output输入输出,它不属于C语言标准库;它还定义了通过控制台进行数据输入和数据输出的函数,如键盘输入、屏幕输出。

f4b7de7274f2d02febe8424d90b6b64b.png

本文操作环境:Windows7系统,Dell G3电脑。

推荐:《编程视频》

"conio.h"头文件是 控制台输入输出函数头文件。con 是控制台Console英文缩写,io是 Input/Output 输入输出。它不属于C语言标准库。

它定义了通过控制台进行数据输入和数据输出的函数,例如 键盘输入,屏幕输出。它是早期C语言用的输入输出函数库。除了个别函数以外,现在基本不用(而用标准库 stdio.h)。

可能用的函数是 getch(); 和 kbhit(void);

getch(); 用于瞬时读取按下的键,(不等待回车换行键的到来)。

kbhit(void); 用于瞬时检查 是否有按键动作。其它函数很少用到。

包含的函数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却并不支持这一函数库。

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值