title: Visual Studio -- does not create exe file
body: <p>I'm working with Visual Studio 2015 for C++ and have created the following basic program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
      // for loop execution
      for (int a = 10; a &lt; 20; a = a + 1) {
          cout &lt;&lt; "value of a: " &lt;&lt; a &lt;&lt; endl;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>When I hit CTRL-F5 to run the program (or when I try running it with Debug mode), it generates the following error:</p>
  
  <pre><code>'"C: \Users\Verity\documents\visual studio 
  2015\Projects\TestProject\Debug\TestProject.exe"' is not recognized as an 
  internal or external command, operable program or batch file.
  </code></pre>
  
  <p>(Note that it builds successfully, but fails when it cannot find the .exe file.) Upon further inspection, I found that the .exe file is not generated.</p>
  
  <p>My antivirus isn't deleting the .exe, and I'm pretty sure the problem doesn't have anything to do with the PATH. The program is named properly with a .cpp extension. </p>
  
  <p>Any ideas on how to fix this? </p>
  
  <p>EDIT:
  I found out that when I create a new C++ file under the "File" tab, it results in the above error because the .cpp file is not added to the project. However, when you right click on the "Solution Explorer" sidebar and create a new file there, the .cpp is added and the error goes away. Anyway, thanks for the responses, everyone! </p>