为什么 C++ 中的 getch() 等待在 CLion 中按 Enter?

问题描述

在 CLion getch() 中等待按下此代码中的 Enter 按钮

#include <iostream>
#include <conio.h>
using namespace std;

int main() {
char c = getch();
cout << c;
}

我该如何解决

Terminal

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)