title: C++ LNK1120 Fatal Error: 1 unresolved externals
body: <p>I'm trying to compile this code using MS Visual Studio Professional 2010 and it's giving me a build error LNK1120 Fatal Error: 1 unresolved externals.
  Here's the code...</p>
  
  <pre><code>// Program Typos prints three integer numbers, sums the numbers, calculates
  // the average, and prints the sum and the average of the three numbers.
  
  #include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  using namespace std;
  
  const int ONE = 5;
  const int TWO = 6;
  const int THREE = 7;
  
  int main ()
  {
      int sum;
      float average;
  
  
      cout  &lt;&lt; fixed  &lt;&lt; showpoint;
  
      cout &lt;&lt; setw(5) &lt;&lt; ONE  &lt;&lt; TWO  &lt;&lt; THREE &lt;&lt; endl;
      sum = ONE + TWO + THREE;
      average = sum / 3;
      cout  &lt;&lt; " The sum is "  &lt;&lt; sum  &lt;&lt; " and the average is " \
        &lt;&lt; average  &lt;&lt;endl;
      return 0;
  }
  </code></pre>