Hello. I am working on a program that needs to, using a map, count every time a word occurs in a text document. The real issue that I am facing is how to read in the words from the text file. I understand the std::ifstream, I just don't know how to 'use' it. Any help on how to take in the text file and count the words would be great. Again, thanks!!
What does ('auto& p': m) mean? I know that it is something that everyone keeps referencing in a few of my classes but I have never really looked into using it. Is it something along the lines of a generic? Or something entirely different?
I also have one last question:
With every word that I take in, is their a way that I can make sure that every character in the word is lower case? Isn't their something in the stl that does that for me?