gpt4 book ai didi

c++ - 如何修复 "not recognized as an internal or external command"问题

转载 作者:太空宇宙 更新时间:2023-11-04 13:05:54 25 4
gpt4 key购买 nike

当我写一个像

这样的简单代码时
#include <iostream>
using namespace std;

int main() {
cout << "Hello World";
return 0;
}

然后在不调试的情况下启动它,它给了我这个消息

'"C:\Users\Acer\Documents\Visual Studio 2012\Projects\ConsoleApplication6\Debug\ ConsoleApplication6.exe"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . <

有人能帮忙吗?

注意:我锁定了它,问题不是“路径”

最佳答案

CTRL+F7 只编译程序。它不会构建它。构建一个程序需要两个阶段,编译阶段和链接阶段。只需按 F7 而不是 CTRL+F7,然后重试。

关于c++ - 如何修复 "not recognized as an internal or external command"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42386651/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com