Omitted for loop values
<p>It's my first post here and my first time with C++. I'm looking at some code I got from the Internet but I have a question about it.</p>

<p>It has a for loop, like this:</p>

<pre><code>for(cin &gt;&gt; t;t--;)
</code></pre>

<p>I understand what it's doing, but I can't understand what the condition is.</p>

<p>According to this format, <code>for ( init; condition; increment )</code>, <code>t--</code> is the condition, but it doesn't make much sense. I think that <code>t--</code> is the increment, but why is it the second parameter?</p>

<p>Shouldn't it be something like: <code>for (cin &gt;&gt; t; ;t--);</code> ?</p>
