This is a discussion on Need help to find a bug within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by thestien very true but as im new to this i dont understand how the condition ( ; ...
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
No, in terms of the loop condition it means: while (i != 0). Then you consider that there is a post-decrement in effect.very true but as im new to this i dont understand how the condition ( ; i-- ; )
does it mean if ( i ) is one less than the previous loop?
im still confused how for(i=nc; i--; ) is the same as while(i != o)
is there a link you know that i could read up on that?
Last edited by thestien; 05-09-2008 at 05:17 PM.