问题
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