摘要: #include void maoPao(int arr[], int len){ int temp; for (int i = 0; i arr[j + 1]) { temp = arr[j]; arr[j] = arr[j... 阅读全文
posted @ 2015-12-24 10:09 Z了个L 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 或者在这个对应的Source Code中添加NSAppTransportSecurityNSExceptionDomainsbaidu.comNSExceptionAllowInsecureHTTPLoadsNSIncludesSubdomainsNSExceptionRequiresForward... 阅读全文
posted @ 2015-12-23 17:51 Z了个L 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-23 12:58 Z了个L 阅读(223) 评论(0) 推荐(0) 编辑
摘要: #include int main(int argc, const char * argv[]) { int a = 3, b = 4; printf("a = %d, b = %d\n", a, b); /* 1.加减法 a = b - a; b = ... 阅读全文
posted @ 2015-12-23 10:33 Z了个L 阅读(296) 评论(0) 推荐(0) 编辑
摘要: #include void changeTo(int n){ // 计算数的位数 int len = sizeof(n) * 8; int temp; int t; for (int i = 0; i > (len-1-i); t = temp & 1; ... 阅读全文
posted @ 2015-12-23 10:15 Z了个L 阅读(525) 评论(0) 推荐(0) 编辑
摘要: int m = 10 , n= 3;m % n m除以n之后,取得余数之后10 % 3 == 1m = 0 可以的,0n = 0 不可以,无意义m > n 正常求余即可m < n 结果为m求余的注意事项1)m和n都不能为小数2)m < 0 结果为负数3)n < 0 正负性取决于m 阅读全文
posted @ 2015-12-21 10:20 Z了个L 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-21 09:14 Z了个L 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1)%md问题(设置域宽问题)m - 数字,这个数字可以为正,也可以为负 如果要输出的数的位数 > 域宽m 按照数据的实际位数输出 printf("%3d\n", 1000); 如果要输出的数的位数 0 从左侧开始补空格 m < 0 2)%0md使用注意 %0md表示 ... 阅读全文
posted @ 2015-12-20 19:55 Z了个L 阅读(415) 评论(0) 推荐(0) 编辑
摘要: // ViewController.h#import @interface ViewController : UITableViewController@end// ViewController.m#import "ViewController.h"const CGFloat HMTopView... 阅读全文
posted @ 2015-12-18 23:35 Z了个L 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 错误原因:1)可能是因为#import了.m文件2)可能是因为项目中存在了2个一样的.m文件 阅读全文
posted @ 2015-12-06 16:05 Z了个L 阅读(334) 评论(0) 推荐(0) 编辑