title: "The system cannot find the file specified" when running C++ program
body: <p>I installed Visual Studio 2010. I wrote a simple code which I'm sure is correct but unfortunately, when I run the code, I get the error below.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int main (){ 
    cout &lt;&lt;"Hello StackOverFlow ;)";
    return 0;
  }
  </code></pre>
  
  <p>And here is the error:</p>
  
  <blockquote>
    <p>Unable to start program 'C:\Users\Soheil\Desktop\New folder\sam\Debug\sam.exe
    The system cannot find the file specified</p>
  </blockquote>
  
  <p>Would you help me solve the issue? Should I define the project in a
  specific directory? I've spent a ton of hours to solve this issue and
  have not had any success yet.</p>