#include #include #include using namespace std; void capitalise(string & x) { for (int i = 0; i < x.length(); i += 1) { char c = x[i]; if (c >= 'a' && c <= 'z') { c = c - 32; x[i] = c; } } } int main() { ifstream ppin; fin.open("/home/www/text/barrie/peterpan"); if (ppin.fail()) { cout << "Couldn't open the file\n"; exit(1); } string words[48000]; int counts[48000]; int num = 0; for (int i = 0; i < 48000; i += 1) counts[i] = 0; while (true) { string s; ppin >> s; if (ppin.fail()) break;