标签: c++
有人能给我一个c ++中getch()函数的好选择吗?我想从键盘上读取符号,并且getch会在ideone上出错,并且在编码块中的在线判断一切顺利。
答案 0 :(得分:2)
尝试以下
int ch = std :: cin.get();