摘要:有文本文件wordlist.txt,统计各个公司出现的频次。运行环境vc++6.0。代码如下:/* * 功能:统计文本文件中字符串的频率 * * 说明:pHeadG -> WordItem 1 -> WordItem 2 -> ... -> WordItem n -> NULL */#include #include #include /**********************数据结构与全局变量*************************/struct WordItem{ char *word; int count; struct WordItem *n
阅读全文
12 2013 档案