|
|
map<string, int> wordCount;if(words == wordList[i]) wordCount[words]++; |
|
wordList (int wordCount[100] = { 0 };). Initialize it to 0 and increase it on line 51 like so wordCount[i]++;.outFile << wordList[i] << " " << wordCount[i] << endl;