【问题标题】:My terminal in VS Code won't print anything or give me an error. Don't know why it is not printing我在 VS Code 中的终端不会打印任何内容或给我一个错误。不知道为什么不打印
【发布时间】:2021-01-03 04:30:07
【问题描述】:

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

#include<stdio.h>

int main(){

    printf("Hello World");

}

【问题讨论】:

  • 你得到什么错误?请将其复制并粘贴到问题中。

标签: c++ terminal compiler-errors printf


【解决方案1】:

查看此文件时按Ctrl+Shift+P 并键入Run Code 并按回车键。 您应该会看到一个使用OUTPUT 选项卡打开的终端并查看结果或错误。

如果发生错误,请与您的问题一起发布。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-09
    • 1970-01-01
    • 1970-01-01
    • 2014-11-11
    • 2018-10-09
    • 1970-01-01
    • 2021-02-18
    • 2021-12-25
    相关资源
    最近更新 更多