两者之间的确切区别是什么getch and getchar功能?
getch
getchar
getchar()是一个从标准输入获取字符的标准函数。
getchar()
getch()是非标准的。它从键盘获取一个字符(可能与标准输入不同)并且不回显它。
getch()