+(void) plusPlusI {
for (int i = 0; i<10; i++) {
NSLog(@"i++ : %i",i);
}
for (int i = 0; i<10; ++i) {
NSLog(@"++i : %i",i);
}
for (int i = 10; i>=0; i--) {
NSLog(@"i-- : %i",i);
}
for (int i = 10; i>=0; --i) {
NSLog(@"--i : %i",i);
}
}
2014-04-15 18:28:16.572 ConceptComfirm[38257:60b] i++ : 0
2014-04-15 18:28:16.573 ConceptComfirm[38257:60b] i++ : 1
2014-04-15 18:28:16.573 ConceptComfirm[38257:60b] i++ : 2
2014-04-15 18:28:16.573 ConceptComfirm[38257:60b] i++ : 3
2014-04-15 18:28:16.573 ConceptComfirm[38257:60b] i++ : 4
2014-04-15 18:28:16.574 ConceptComfirm[38257:60b] i++ : 5
2014-04-15 18:28:16.574 ConceptComfirm[38257:60b] i++ : 6
2014-04-15 18:28:16.574 ConceptComfirm[38257:60b] i++ : 7
2014-04-15 18:28:16.574 ConceptComfirm[38257:60b] i++ : 8
2014-04-15 18:28:16.574 ConceptComfirm[38257:60b] i++ : 9
2014-04-15 18:28:16.575 ConceptComfirm[38257:60b] ++i : 0
2014-04-15 18:28:16.575 ConceptComfirm[38257:60b] ++i : 1
2014-04-15 18:28:16.575 ConceptComfirm[38257:60b] ++i : 2
2014-04-15 18:28:16.575 ConceptComfirm[38257:60b] ++i : 3
2014-04-15 18:28:16.575 ConceptComfirm[38257:60b] ++i : 4
2014-04-15 18:28:16.576 ConceptComfirm[38257:60b] ++i : 5
2014-04-15 18:28:16.576 ConceptComfirm[38257:60b] ++i : 6
2014-04-15 18:28:16.576 ConceptComfirm[38257:60b] ++i : 7
2014-04-15 18:28:16.576 ConceptComfirm[38257:60b] ++i : 8
2014-04-15 18:28:16.579 ConceptComfirm[38257:60b] ++i : 9
2014-04-15 18:28:16.580 ConceptComfirm[38257:60b] i-- : 10
2014-04-15 18:28:16.580 ConceptComfirm[38257:60b] i-- : 9
2014-04-15 18:28:16.580 ConceptComfirm[38257:60b] i-- : 8
2014-04-15 18:28:16.580 ConceptComfirm[38257:60b] i-- : 7
2014-04-15 18:28:16.581 ConceptComfirm[38257:60b] i-- : 6
2014-04-15 18:28:16.581 ConceptComfirm[38257:60b] i-- : 5
2014-04-15 18:28:16.581 ConceptComfirm[38257:60b] i-- : 4
2014-04-15 18:28:16.581 ConceptComfirm[38257:60b] i-- : 3
2014-04-15 18:28:16.581 ConceptComfirm[38257:60b] i-- : 2
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] i-- : 1
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] i-- : 0
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] --i : 10
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] --i : 9
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] --i : 8
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] --i : 7
2014-04-15 18:28:16.582 ConceptComfirm[38257:60b] --i : 6
2014-04-15 18:28:16.583 ConceptComfirm[38257:60b] --i : 5
2014-04-15 18:28:16.583 ConceptComfirm[38257:60b] --i : 4
2014-04-15 18:28:16.583 ConceptComfirm[38257:60b] --i : 3
2014-04-15 18:28:16.583 ConceptComfirm[38257:60b] --i : 2
2014-04-15 18:28:16.584 ConceptComfirm[38257:60b] --i : 1
2014-04-15 18:28:16.584 ConceptComfirm[38257:60b] --i : 0
沒有留言:
張貼留言