2016年1月13日
摘要: //求1+2!+3!+...+20!的和// // // NSInteger num=1;// CGFloat nums=0;// for (int i=1; i<=20; i++) {// num=1;// for (int j=1; j<=i; j++) {// ... 阅读全文
posted @ 2016-01-13 17:06 暂停 阅读(326) 评论(0) 推荐(0) 编辑
  2016年1月11日
摘要: #import /*集合类:存储大量数据数组、字典、set集合NSSet1.元素是无序的,同一个对象只能保存一个。2.都是集合,都能存放多个oc对象,只能是oc对象。3.有个可变的子类*/int main(int argc, const char * argv[]) { @autoreleasep... 阅读全文
posted @ 2016-01-11 16:45 暂停 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #import #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-11 15:25 暂停 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #import #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-11 14:11 暂停 阅读(273) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]) 阅读全文
posted @ 2016-01-11 10:20 暂停 阅读(119) 评论(0) 推荐(0) 编辑
  2016年1月10日
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 请将如下数据存储成字典,并将字典内容以字符串形式输出,输出:"XXX,年龄XXX岁,科目XXX,分数XXX"(将XXX替换为相应的数据)。 ... 阅读全文
posted @ 2016-01-10 15:31 暂停 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableArray *arr=[NSMutableArray array]; for (int i=0; iint main(int ar... 阅读全文
posted @ 2016-01-10 11:49 暂停 阅读(515) 评论(0) 推荐(0) 编辑
  2016年1月9日
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 字符串中的world替换为i bookan wisdom */ // NSString *str1=@"hello worl... 阅读全文
posted @ 2016-01-09 16:57 暂停 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSString* str = @"abc123.xyz789"; NSInteger len = [str length]; NSMutab... 阅读全文
posted @ 2016-01-09 15:16 暂停 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *string=@"2013 年 05 月 05 日"; NSRange strc=NSMakeRange(0, 4); N... 阅读全文
posted @ 2016-01-09 15:05 暂停 阅读(263) 评论(0) 推荐(0) 编辑