title: How to avoid precompiled headers
body: <p>I am trying to compile a simple VS program in C++ as an assignment for class. We only ever include <code>&lt;iostream&gt;</code> and I keep getting this error:</p>
  
  <blockquote>
    <p>1>Assignment.cpp(15): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add <code>'#include "StdAfx.h"'</code> to your source?</p>
  </blockquote>
  
  <p>My program is literally this small...</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      unsigned int day = 30;
  
      cout &lt;&lt; "My Name is John Doe" &lt;&lt; endl;
      cout &lt;&lt; "My Major is CS" &lt;&lt; endl;
      cout &lt;&lt; "I was born on day " &lt;&lt; day &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>I just installed Visual Studio Express 2010. Really I would love to start an empty project instead of installing with all these files predefined, I think it would make it a lot easier but I never get that option when creating a project. Anybody have any suggestions?</p>