标签:
int r = arc4random();
NSLog(@"%d",r);
NSLog(@"%d",r%100);//模上100 0-99
NSArray *array = @[@"one",@"two",@"three"];
for (NSString *s in array) {
NSLog(@"%@",s);
}
continue 跳出此次循环
break 结束此次循环
int i =1;
int limit = 3;
int sum = 0;
while(i<=limit){
sum +=i;
i++;
}
NSLog(@"%d",sum);
标签:
原文地址:http://www.cnblogs.com/WJR12/p/5025860.html