【问题标题】:how can I run a c++ problem in vscode and with a txt file input如何在 vscode 和 txt 文件输入中运行 c++ 问题
【发布时间】:2021-02-27 17:44:07
【问题描述】:

我正在尝试运行一个从 vscode 中的 txt 文件获取输入的问题,但我不知道在终端中要写什么。我用的是windows10。我的程序有一个通过运行我的解决方案创建的其他文件作为输出。这是我的代码。谢谢 the parts that i use the files

【问题讨论】:

    标签: c++ visual-studio-code


    【解决方案1】:

    下载这些扩展以在 VSCode 上运行程序

    C/C++ Extension for VSCode

    Code Runner

    之后,您可以使用ALT + CTRL + N 运行您的程序

    【讨论】:

    • 它仍然没有运行它说:[运行] cd "c:\Users\nefik\hashcode final\" && g++ hashpel.h -o hashpel && "c:\Users\nefik \hashcode final\"hashpel 'g++' 不是内部或外部命令、可运行程序或批处理文件。 [完成] 在 0.035 秒内以 code=1 退出
    • 您是否安装了 MinGW(C++ 编译器)?安装后,你有没有在你的环境路径中添加g++?您可以查看this post 了解更多信息。
    猜你喜欢
    • 2016-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多