摘要: #import int main(int argc, const char * argv[]) { /** file:文件路径 encoding:编码英文, iOS-5988-1 中文 GBK GBK2312,一般情况下填写UTF-8 error:如果... 阅读全文
posted @ 2016-01-11 12:31 Z了个L 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.修改Info.plist的设置之后就可以通过UIApplication对象进行设置了 阅读全文
posted @ 2016-01-07 16:41 Z了个L 阅读(126) 评论(0) 推荐(0) 编辑
摘要: -fno-objc-arc === 告诉编译器是MRC-f-objc-arc === 告诉编译器是ARC 阅读全文
posted @ 2016-01-05 11:38 Z了个L 阅读(138) 评论(0) 推荐(0) 编辑
摘要: /** * static 和 extern 修饰局部和全局变量 // static 可以修饰局部变量 // 作用:1)static定义的变量的作用域会得到延长 // 2)static定义的变量的语句只会被执行一次 extern是不能够修饰局部变量的 ... 阅读全文
posted @ 2015-12-28 09:36 Z了个L 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include int sum(int a, int b){ return a + b;}int jian(int a, int b){ return a - b;}int main(int argc, const char * argv[]) { // 1.基本数据类型... 阅读全文
posted @ 2015-12-26 18:20 Z了个L 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #include int main(int argc, const char * argv[]) { // 定义变量 char str[100]; int words = 0; int count = 0; // 提示用户输入字符串 printf(... 阅读全文
posted @ 2015-12-26 08:04 Z了个L 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include int insertItemLoc(int arr[], int len, int key){ // 定义变量 int low = 0, high = len - 1, mid; // 循环 while (low arr[mid]) { ... 阅读全文
posted @ 2015-12-25 09:19 Z了个L 阅读(342) 评论(0) 推荐(0) 编辑
摘要: #include /** * 使用折半查找,来查找一个数 * * @param arr 数组 * @param len 数组的长度 * @param key 要查找的数 * * @return 要查找的数的位置,如果查找不到返回 -1 */int searchItem(int arr[],... 阅读全文
posted @ 2015-12-25 09:16 Z了个L 阅读(744) 评论(0) 推荐(0) 编辑
摘要: #include // 选择排序void selectSort(int arr[], int len){ int temp; for (int i = 0; i arr[j]) { temp = arr[i]; arr[i] ... 阅读全文
posted @ 2015-12-24 15:50 Z了个L 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-24 10:31 Z了个L 阅读(136) 评论(0) 推荐(0) 编辑