C++库文件解析(conio.h)

摘要:
DOS、Windows3.X、PharLap、OS/2和Win32平台上的大多数C编译器都提供此文件。UNIX和Linux平台通常不提供此文件。cgets;;cputs;cscanf;inpw;getch;getche;kbhit;outp;outpw;putch;取消蚀刻;void_ Cdeclreol;空隙_ Cdeclrscr;void_ Cdecldelline;int_ Cdeclgettext;void_ Cdeclgettextinfo;void_ Cdeclgotoxy;void_ Cdeclhighvideo;void_ Cdeclinsine;void_ Cdecllowvideo;int_ Cdeclmovetext;void_ Cdeclnormvideo;int_ Cdeclputxt;void_ Cdecltext属性;void_ Cdecltext背景;void_ Cdecltext颜色;void_ Cdecltext模式;int_ Cdeclwherex;int_ Cdeclwhere;空隙_ Cdeclwindow;char*_ Cdeclcgets;int_ Cdeclcprintf;int_ Cdeclcputs;int_ Cdeclcscanf;int_ Cdeclgetch;int_ Cdeclgetche;char*_ Cdeclgetpass;int_ Cdeclkbhit;int_ Cdeclputch;int_ Cdeclungetch;科尼奥。H不仅可以在WIndows中使用,也可以在Linux上使用。有一个相应的兼容包可在互联网上下载,而Mac上OSX的XCode不支持它。

转载:https://blog.csdn.net/ykmzy/article/details/51276596

Conio.h 控制台输入输出库
该文内容部分参照百度百科

Conio.h 在C stanard library,ISO C 和POSIX标准中均没有定义。
Conio 是Console Input/Output的简写,其中定义了通过控制台进行数据输入和数据输出的函数,主要是一些用户通过按键盘产生的对应操作,比如getch()函数等等。
大部分DOS,Windows 3.X,Phar Lap,OS/2和Win32平台上的C编译器提供此文件,UNIX和Linux平台上通常不提供此文件。

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不仅可以在WIndows使用,在Linux上也可以,网上已经有相应的兼容包可供下载,Mac上的OSX的XCode则不支持它。
————————————————
版权声明:本文为CSDN博主「阆苑小书童」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ykmzy/article/details/51276596

免责声明:文章转载自《C++库文件解析(conio.h)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇在 foreach 中操作集合时报错:Collection was modified; enumeration operation may not execute.关于SecureCRT不能显示输入、换行不正常下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

unordered_map的哈希HASH重载——举例unordered_map与pair联合使用

有些时候,为了图省力,我们没准会这样的调用一个函数 unordered_map< pair<int, int>, int > mp; 但是很显然的是,这样的写法是会报错的,因为pair还没有HASH键值。 error: call to implicitly-deleted default constructor of 'std::...

关于Unity的C#基础学习(四)

一、数组 存放同种类型的一组数据,同类+多个 1.定义 int [] int_set; int_set=new int[10];  //在堆上分配出10个int,int_set是数组的引用变量,指向10个int大小的内存空间。new 类型[容量] 2.访问 数组引用变量名称[索引],int_set[0]=0,int_set[1]=1,int_set[1]=...

杨辉三角求沿着矩阵走的路径有多少条

请编写一个函数(允许增加子函数),计算n x m的棋盘格子(n为横向的格子数,m为竖向的格子数)沿着各自边缘线从左上角走到右下角,总共有多少种走法,要求不能走回头路,即:只能往右和往下走,不能往左和往上走。 private static void calc(int row, int col) { int[][] arr = new int[row...

USACO 1.3 Wormholes

Wormholes Farmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 <= N <= 12, N even) to materialize on his farm,...

C++解析(28):异常处理

0.目录 1.C语言异常处理 2.C++中的异常处理 3.小结 1.C语言异常处理 异常的概念: 程序在运行过程中可能产生异常 异常(Exception)与 Bug 的区别 异常是程序运行时可预料的执行分支 Bug 是程序的错误,是不被预期的运行方式 异常(Exception)与 Bug 的对比: 异常 运行时产生除0的情况 需要打...

判断质数

质数 质数又称为素数,是指大于1的并且除了1和它本身外,没有其他因数的自然数。 判断一个数是否是质数 试除法代码: public static Boolean isprime(int n){ if(n == 1) return false; for(int i = 2; i <= n / i; i++){ if(n...