title: Multiple definitions of "Main"
body: <p>In the journey to learning C++ im learning through the C++ Manual thats on the actual website. Im using DevC++ and have hit a problem, not knowing whether its the compilers error or not.</p>
  
  <p>I was going through this code bit by bit typing it in myself, as I feel its more productive, and adding my own stuff that ive learnt to the examples, then I get to initialising variables. This is the code that is in the C++ manual</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  int main ()
  {
      int a=5;     // initial value = 5
      int b(2);    // initial value = 2
      int result;  // initial value undetermined
  
      a = a + 3;
      result = a - b;
      cout &lt;&lt; result;
  
      return 0;
  }
  </code></pre>
  
  <p>This is popping up a compiler error saying " Multiple definitions of "Main""
  Now This is on the actual C++ page so im guessing its a compiler error. </p>
  
  <p>Could someone please point me in the right direction as to why this is happening and what is the cause for this error.</p>