使用C语言实现。
使用改进的二叉查找树储存单词及其出现的次数(具体见源代码)
使用莎士比亚戏剧文章进行了测试,这里附上测试样例以及测试结果
English Word Frequency Statistics Program realized by C
Use the improved two fork search tree to store words and the number of times they appear (see source code for details).
Test using Shakespeare's drama. Here are the sample and test result.