Write a program in C or C++ and Visual Studio to scan multiple text files and count the number of occurrences of each word in those files. Use a binary tree to keep track of all words. When all input files have been scanned, print out the results to the output file
Your program must accept an indeterminate number of arguments on the command line, the first of which specifies the output file and the remaining of which specify the input files Under this command, the program would open and read each of the input files in turn, building up a binary tree of words and counts as it progresses. Once all files have been read and closed, it must create the output file and write out the words in the tree in alphabetical order, one word per line, along with the number of occurrences of that word. Your program should ignore the case of the words, so that -This? and -this? are considered the same. However, words that are actually spelled differently - such as -car? and -cars? - are considered to be different words