摘要: 分别实现选择排序和冒泡排序(在上上篇文章)对以下文件进行排序。支持如下形式调用:BubbleSort.exe input.txt output.txt 0 BubbleSort.exe input.txt output.txt 1 (0:从小到大,1:从大到小)。注意中文处理(若无法处理可以只对学号排序,需要在文档中说明) 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 #define N 200 6 struct student{ 7 char num[200]; 8 ch 阅读全文
posted @ 2012-10-16 23:24 daomul 阅读(1695) 评论(0) 推荐(1) 编辑
摘要: 实现对以下英文文本的关键词查找。支持如下形式调用:search.exe input.txt keyword输出:关键词首次出现位置若实现通配符查找有加分(若实现了在文档中说明) 1 #include "stdio.h" 2 #include "string.h" 3 #include "stdlib.h" 4 #include "conio.h" 5 6 void main(int argc,char **argv) 7 { 8 int MyCount; //文件字符总数 9 int i=0,j;10 int m= 阅读全文
posted @ 2012-10-16 23:20 daomul 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 分别实现选择排序(在下下一篇文章)和冒泡排序对以下文件进行排序。支持如下形式调用:BubbleSort.exe input.txt output.txt 0 BubbleSort.exe input.txt output.txt 1 (0:从小到大,1:从大到小)。注意中文处理(若无法处理可以只对学号排序,需要在文档中说明) 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 #define N 200 6 struct student{ 7 char num[200]; 8 c 阅读全文
posted @ 2012-10-16 22:33 daomul 阅读(513) 评论(0) 推荐(0) 编辑