为什么用getch (这个函数从键盘输入了' a ',屏幕上却什么都没有?
说明: Getch(:从键盘读取的字符不会显示在画面上,但输入的值已经保存。
# include iostream # include conio.husingnamespacestd; int main () {char ch; Getch(ch ); coutchendl; 返回0; 假设输入了(a );
执行结果:
A你明白了吗?
我的洛谷团队: https://www.Luo gu.com.cn/team/34776 # main