摘要: ``` #define _CRT_SECURE_NO_WARNINGS #include #include #include #include char strpath[256] = "kaifang.txt"; char savepath[256] = { 0 }; void showlist( char str[256]) { sprintf(savepath, "C:\\%s... 阅读全文
posted @ 2016-11-09 20:26 呉语伦比 阅读(312) 评论(0) 推荐(0)
摘要: 冒泡排序 include include void main1() { int a[10] = { 3, 5, 18, 9, 23, 5, 2, 1, 0 ,2}; // 9 18 5 2 1 , 0,2 23 for (int i = 0; i a[i+1])//对比 { int temp = a 阅读全文
posted @ 2016-11-09 20:15 呉语伦比 阅读(91) 评论(0) 推荐(0)
摘要: 中=头+(尾 头) 1.0 (num arr[头] ) / arr[尾] arr[头] ; void search2(int a[N], int num) { int tou = 0; int wei = N 1; int zhong; int flag = 1;//代表找不到 int ci = 0 阅读全文
posted @ 2016-11-09 19:58 呉语伦比 阅读(158) 评论(0) 推荐(0)