c++ - Godbolt 不显示标准输出

标签 c++ compiler-explorer godbolt

关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

9 个月前关闭。




Improve this question




我正在使用 https://godbolt.org/编译一个简单的 C++ 脚本,但即使是最简单的

int main()
{
  std::cout << "Hello World!" << std::endl;
}
当我点击 Add new... --> Compiler --> Output我得到:Compiler returned: 0

最佳答案

正如@Ayxan Haqverdili 告诉我的,缺少的步骤是 Output... > Run the compiled output

关于c++ - Godbolt 不显示标准输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66506345/

相关文章:

c++ - 调整容器大小时的奇怪行为

assembly - 如何在(发布的)Rust版本中找到函数的汇编代码?

c - 在编译器资源管理器中包含 C 的外部头文件

c++ - 如果 C++ 使用 cdecl 调用约定,为什么 godbolt 显示在 edi 中传递的参数?

android - 我可以使用 NDK 在 Android 上构建命令行应用程序吗?

c++ - 如何解决 Visual C++ 200 5's "修饰名称长度超出,名称被截断“警告?

C++虚拟继承内存布局