- #1
happysauce
- 42
- 0
So I just started teaching myself C++ using visual studio 2010. I started with a nice easy program.
First thing I did was created a new project called "Tutorial." Under source files I right clicked and selected add -> new item, I named it Introduction.cpp. I created this:
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World";
cout << endl;
cout << "My name is Neil";
system("pause");
return 0;
}
Worked out fine. It compiled and ran properly.
So I added another item and named it variables.cpp and made this:
#include <iostream>
using namespace std;
int main ()
{
int a, b, c;
int sum;
a=1;
b=2;
c=3;
a=a+4;
sum = a+b+c;
cout << sum;
system("pause");
return 0;
}
This time when I compile and run I get an error Unable to start program "Tutorials/Debug/Tutorial.exe the system in the file cannot be found.
So I go back and try the other program and i get the same error. A lot of people online say to check the Debug file and look for it, but I didn't find any. I did find tutorial.exe.imbed.manifest though. I don't really know what's going on or how to fix this.
First thing I did was created a new project called "Tutorial." Under source files I right clicked and selected add -> new item, I named it Introduction.cpp. I created this:
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World";
cout << endl;
cout << "My name is Neil";
system("pause");
return 0;
}
Worked out fine. It compiled and ran properly.
So I added another item and named it variables.cpp and made this:
#include <iostream>
using namespace std;
int main ()
{
int a, b, c;
int sum;
a=1;
b=2;
c=3;
a=a+4;
sum = a+b+c;
cout << sum;
system("pause");
return 0;
}
This time when I compile and run I get an error Unable to start program "Tutorials/Debug/Tutorial.exe the system in the file cannot be found.
So I go back and try the other program and i get the same error. A lot of people online say to check the Debug file and look for it, but I didn't find any. I did find tutorial.exe.imbed.manifest though. I don't really know what's going on or how to fix this.