Count word frequency using Binary Search Tree
Posted on 2004-04-10
I have been trying to code a program which counts the number of times a word appears in a text file and in which line it occurs. I have a simple BST program which was given to me by my friend. What the simple program does is simply do a BST on integers. Mine should have a class called record which contains details about the frequency, line number in which it appears n the word itself. Each node should contain a word(class Record). So far i have managed to break apart the words and from the text file. I will be posting my header file and driver file in a sec. Just use any small text file.