github 的链接:
经过半个小时的激烈讨论,我们将此次的项目分为以下几个模块:
1.处理命令行输入——void input(int m,int n,String input_string)
2.统计字符——int cout_char(String s)
3.判断某个字符串是否为单词——bool is_word(String s)
4.统计单词个数——int cout_word(String s)
5.统计行数——int count_line(String s)
6.小写转换——String lowcase(String s)
7.统计词组个数——int cout_phrase(int m,String)
8.将统计数据写入文件——void output()
9.单词排序——bool cmp()
10.主函数——main(arg)