为什么 IDE 无法识别我的输入?
Why the IDE doesn't recognize my input?
代码
#include <iostream>
#include <curses.h>
#include <stdlib.h>
int main() {
std::cout << "Hello, World!" << std::endl;
std::cout << "Hello, World!";
return 0;
}
ALL instruction/text 我插入后变成灰色...我刚刚安装了 CLion,也许我遗漏了什么?
CLion 将您的代码中未使用的包含变灰。
std::cout
来自 iostream(未显示为灰色)
尝试构建 Ctrl + F9
并调试 Shift + F9
您的代码,您将看到输出
Hello, World!
Hello, World!
Process finished with exit code 0
代码
#include <iostream>
#include <curses.h>
#include <stdlib.h>
int main() {
std::cout << "Hello, World!" << std::endl;
std::cout << "Hello, World!";
return 0;
}
ALL instruction/text 我插入后变成灰色...我刚刚安装了 CLion,也许我遗漏了什么?
CLion 将您的代码中未使用的包含变灰。
std::cout
来自 iostream(未显示为灰色)
尝试构建 Ctrl + F9
并调试 Shift + F9
您的代码,您将看到输出
Hello, World!
Hello, World!
Process finished with exit code 0