Sorry I wasn't more specific...
I use
dev C++(which I love) , and it wasn't compiling.
I then tried to compile it in visual c++ and it worked fine, but I dont think you understand exactly what I need, it's my fault, I explained my problem badly.
I need some thing that will read the word "kodiak"
and spit out:
6 characters long.
uses "k" 2 times.
uses "o" 1 time.
uses "d" 1 time.
uses "i" 1 time.
uses "a" 1 time.
...........................................If the code you posted does do this, then I'm sorry....
I don't need you to write all of my code for me, i can get the file to go to an array, and compare them, and finally write the answers to a file, etc.
I just need code that will tell me what i have posted above.
I am very grateful for you helping me become a better C++ programmer,
Kodiak