摘要: #include #define M 15 //M表示人数,N表示报号退出的数字int main(){ int str[M]; for(int a = 0;a 1) //直到只剩一人退出循环 { if (str[i] != 0)//最后没有的时候就不用计算了 count++;... 阅读全文
posted @ 2015-08-28 15:33 z小姐的iOS 阅读(606) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSArray * arr=@[@"zero",@"one",@"two",@"three",@"for",@"five",@"six",@"seven",... 阅读全文
posted @ 2015-08-28 15:29 z小姐的iOS 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #importint main(){@autoreleasepool{NSString *str1 = @"150";NSString *str2 = @"100";//intValue 是返回一个int类型的字符串int num1 =[str1 intValue];int num2 =[str2 ... 阅读全文
posted @ 2015-08-28 15:25 z小姐的iOS 阅读(135) 评论(0) 推荐(0) 编辑