Counting the Number of Words in a Text File in STL / C++ Andy 5 December 2011 C++ / MFC / STL 9 Comments This post aims to illustrate the power of using STL’s associative arrays as a word counter. It reads the entire contents of the text file, word-by-word, and keeps a running … Read More...