摘要: @xcode黑科技 1开多一个模拟器:open -n /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app 开3个:open -n /Applications/Xcode.app/Contents/Develope 阅读全文
posted @ 2016-12-16 18:18 行者烧炉子 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 示例代码 int arr[] = {5,8,6,4,9,3,1,7,2}; int length = sizeof(arr)/sizeof(int); for(int i = 0; i < length - 1; i++) { for(int j = 0; j < length - 1- i; j+ 阅读全文
posted @ 2016-12-16 12:20 行者烧炉子 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 排序算法,比较常用的是选择排序和冒泡排序 还是直接上代码比较直接,这里对1到9这几个数字进行了排序 示例代码 int arr[] = {5,8,6,4,9,3,1,7,2}; int length = sizeof(arr)/sizeof(int); for(int i = 0; i < lengt 阅读全文
posted @ 2016-12-16 12:13 行者烧炉子 阅读(166) 评论(0) 推荐(0) 编辑