title: Syntax error/ for loops
body: <p>I am having a problem with the simplest code, im sure its something stupid. When i put a ';' after the main function, it says something along the lines of old style formatting listing. So when i remove it, it says there is a ';' missing before ')'. Any help would be appreciated, the code is as follows:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  
  
  using namespace std;
  
  
  int _tmain(int argc, _TCHAR* argv[]) {
  
  int i;
  
  for (i = 0, i &lt; 10, i++)
      cout &lt;&lt; i &lt;&lt; endl;
  
  
  system("pause");
  return 0;
  }
  </code></pre>
  
  <p>this is all in visual studio express by the way, also putting {} for the for loop makes no difference to the outcome. </p>