Visual Studio Error: The system cannot find the file specified

52 views Asked by At

I was trying to run my first C++ code in Visual Studio, by creating a blank project and then creating a C++ source file in the project.

But, when I try to run, it just gives this error message.

image

When I go and look in the folder, I see that another folder with the same name has been created, and there is the file, but that is not the right directory.

image

image

This is my code, by the way:

#import <iostream>

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

There are 0 answers