getch() 和 getchar() 有什么区别? [英] What is the difference between getch() and getchar()?

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

问题描述

getchgetchar 函数之间的确切区别是什么?

What is the exact difference between the getch and getchar functions?

推荐答案

getchar() 是一个从 stdin 中获取字符的标准函数.

getchar() is a standard function that gets a character from the stdin.

getch() 是非标准的.它从键盘获取一个字符(可能与标准输入不同)并且不回显它.

getch() is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.

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

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