摘要: 思路:先创建一个结构体word,用来存放单词,再创建一个空的与其一样的结构体o用来交换#include #include #include struct word{ char c[30]; int n;}w[10000];struct word o;下面程序主体,变量声明,打开文本文件看是否文件为空void main(){ FILE *fp; char ch; int k=0,h,m,l,j,x,i=0,sum; fp=fopen("D://huang.txt","r");if(fp==NULL){ printf("无法打开此文件\n" 阅读全文
posted @ 2014-03-02 15:21 黄为 阅读(598) 评论(1) 推荐(0) 编辑