摘要: 归并排序 文本文件 sort1.txt 的内容如下: 1456 文本文件 sort2.txt 的内容如下: 2378 是用归并排序将上述两文件归并输出到文件 result.txt 1 #include <stdio.h> 2 #define LEN 4 3 4 void merge(FILE* me 阅读全文
posted @ 2021-01-04 18:13 互联星空 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序 1 #include <stdio.h> 2 #include <string.h> 3 #define MAX 20 4 5 void bubble(char *string,int count) 6 { 7 int i,j; 8 char temp; 9 for(j = count;j 阅读全文
posted @ 2021-01-04 14:48 互联星空 阅读(90) 评论(0) 推荐(0) 编辑