8 votes
Accepted

Count the frequencies of each word in a file

Kudos on writing a working program! You already sense that things can be improved, which is also great. Toby Speight already pointed out some issues in your code. You are a beginning C++ programmer, ...
G. Sliepen's user avatar
  • 54.1k
3 votes

Count the frequencies of each word in a file

Please don't do this: using namespace std; That immediately takes away the benefit of namespaces, making it harder to be sure which namespace identifiers come ...
Toby Speight's user avatar
  • 74.4k

Only top scored, non community-wiki answers of a minimum length are eligible