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