getchar(),getche()和getch()函数有什么区别? [英] What's the difference between getchar(),getche() and getch() functions?

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

问题描述

大家好。你能解释一下getchar(),getche()和getch()函数之间的区别吗?还解释了缓冲区的概念。

hi everybody. Could u plz explain what''s the difference between getchar(),getche() and getch() functions. Also explain the concept of buffer .

推荐答案

getchar将等到返回被按下

getche将看到字符,因为它们是类型。

getch(我认为)和getchar一样,但是c ++的另一个用于c ++
getchar will wait till return is pressed
getche will see the characters as they''re type.
getch (i think) is the same as getchar but one is for c the other for c++


感谢Deman但是你可以详细解释一下n还告诉缓冲区
Thanks Deman but could u plz explain in a little detail n also tell about buffer


还有一件我不知道的事情。所有这些函数都在C ++中
one more thing I don''t know C . and all these functions are there in C++


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

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