I can increment a FOR loop in xcode, but for some reason the reverse, namely decrementing, doesn't work.
This incrementing works fine, of course:
for (int i=0; i<10; ++i) {
NSLog(@"i =%d", i);
}
But, this decrementing doesn't produce a thing:
for (int i=10; i<0; --i) {
NSLog(@"i =%d", i);
}
I must have the syntax wrong, but I believe this is correct for Objective C++ in xcode.