简体   繁体   中英

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

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"

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM