Cannot start the program, cannot find the specified file, Visual Studio 11

I am working on a new installation of VS 11 Beta on a 64-bit Windows 7 machine. When I try to debug, it gives me this error message.

"Cannot start the program 'C: \ Users \ myname \ documents \ Visual Studio 11 \ Projects \ Project1 \ Debug \ Project1.exe"

I am almost completely sure that this is not a problem with my code - it works great in online compilers, making me think that this is a problem with the way I save it. Just in case, here it is.

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
printf("Hello, world!\n");
return 0;
}

My process of creating a project / file is to create a new empty Visual C ++ project, then a .cpp file, write my code, save it as .c inside the first folder I’m prompted within the projects, and then try debug.

, ? , , , .exe, .

NB: . babyspeak, .

+3
3

, . , ccp c, , VS 11, . , c ( ), ( _tmain), cpp, c, .

VS 2010 "Hello World", VS 11 Beta, , . 2010 . , .

+1

. exe .

0

, , , , :

.cpp . , , .cpp. (ex3.18.cpp) .exe.

, , , VS 11, , .

0

All Articles