c++ - 我的VS Code终端无法显示任何内容或给我一个错误。不知道为什么不打印

标签 c++ terminal compiler-errors printf

刚刚安装了带有C/C++ IntelliSense ...(Microsoft)和Code Runner扩展的Visual Studio Code。我也在使用MinGW。此代码拒绝打印到我的终端。

#include<stdio.h>

int main(){

    printf("Hello World");

}

最佳答案

在查看此文件时,按Ctrl+Shift+P并键入Run Code并按Enter。
您应该看到一个带有OUTPUT选项卡打开的终端,并看到结果或错误。
如果发生错误,请与您的问题一起发布。

关于c++ - 我的VS Code终端无法显示任何内容或给我一个错误。不知道为什么不打印,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63918392/

相关文章:

swift - 无法转换具有匹配类型的类型的值 - 我遇到了编译器限制吗?

c++ - 双端队列 emplace_back 指向对象的新指针

c++ - 无法删除自定义类的堆实例 (C++)

c++ - C/C++ 的选项解析器?

linux - fatal error : pthread/pthread_impl. h : No such file or directory #include <pthread/pthread_impl. h>

python - 使用 cron 终止后运行程序

c++ - SethreadAffinityMask() 正确用法?

linux - 如何将文件路径作为 bash 脚本中的参数传递给函数?

c++ - 编译 Boost.Log 时出错

macos - 为 OS X 编译 NTFS-3G