getch()与getche()之间的区别 [英] Difference between getch() vs getche()

查看:80
本文介绍了getch()与getche()之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++中的getch和getche()有什么区别

解决方案

getch [ ^ ]从控制台读取一个字符,不带回声

getche [ ^ ]从控制台中读取一个带有echo的字符

What is difference between getch and getche() in C++

解决方案

getch[^] reads a character from the console without echo.
getche[^] reads a character from the console with echo.


这篇关于getch()与getche()之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆