如何修复“不被识别为内部或外部命令";问题 [英] how to fix "not recognized as an internal or external command" issue

查看:73
本文介绍了如何修复“不被识别为内部或外部命令";问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编写

#include <iostream>
using namespace std;

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

并在不调试的情况下启动它会给我此消息

and start it without debugging it gives me this message

'"C:\ Users \ Acer \ Documents \ Visual Studio 2012 \ Projects \ ConsoleApplication6 \ Debug \ ConsoleApplication6.exe'无法识别为内部或外部命令, 可操作的程序或批处理文件. 按任意键继续 . . . <

'"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 . . . <

有什么可以帮助的吗?

注意:我为此锁定,问题不在于路径"

note:I locked for it and the problem is not the "path"

推荐答案

CTRL + F7仅编译程序.它没有建立它.构建程序需要两个阶段,即编译阶段和链接阶段.只需按F7而不是CTRL + F7,然后重试.

CTRL+F7 only compiles the program. It doesn't build it. There are two stages needed to build a program, the compile stage and the link stage. Just press F7 instead of CTRL+F7 and try again.

这篇关于如何修复“不被识别为内部或外部命令";问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆