Why, it's easy as pie sir....in fact, I don't believe our boards will let you post a bunch of {}'s and the like without code tags. simply enclose your code within the opening and closing "code tags."Originally Posted by civiclx97
<code>
//My readable and indented code goes here.
</code>
Simply replace those <>'s with []'s. (If I'd done so, it would've parsed them as code and you wouldn't be able to see the text for the tags themselves.
Also...
seems to be a condition you're testing for....you forgot the if there.Code:counter>=1
And this really doesn't have much to do with C++ sir...it's C.
And as said before me, curly braces are your friends. They make code much more readable to you and everyone else. It more clearly illustrates which actions belong to their respective conditions, and where loops begin/end and such.