Design and write a c++ program that reads a file of text and stores each unique word in some node o fa binary search tree while maintaining a count of the number of appearances of the word in the input file.
The program then prints out the number of distinct words stored in the tree.
The program next reads words from a second data file and searches for them in the tree. If a word from the second file is found in the res, it sprinted out along with its frequency of appearance in the first file; if a word is not found, it is printed with a status message to that effect
WhatsApp us