how to fix “not recognized as an internal or external command” issue

一笑奈何 提交于 2019-12-20 04:35:11

问题


when i write a simple code like

#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"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . <

can any one help?

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


回答1:


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.



来源:https://stackoverflow.com/questions/42386651/how-to-fix-not-recognized-as-an-internal-or-external-command-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!