C++ For loop loops only 299 times
<p>I'm having this weird problem. My code is simple:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main() {
    int num;
    cout &lt;&lt; "number: ";
    cin &gt;&gt; num;

    for (int i=0;num&gt;i;i++) {
        cout &lt;&lt; i &lt;&lt;"\n";    
    }

system ("Pause");
return 0;    
}
</code></pre>

<p>If the input for example is 1000, the output contains numbers from 701-999.
Any idea?</p>

<p>I'm using Dev-C++ IDE on Parallels.</p>
