#include #include #include // see ClassStruct.cpp for the class code using namespace std; const size_t MAX_WORDS{100}; string StripWord(string word); int main() { ifstream inFile("ocap.txt"); string word; inFile >> word; while(inFile) { word = StripWord(word); inFile >> word; } inFile.close(); return 0; } string StripWord(string word){ string fixedWord; for(size_t i = 0; i < word.size(); ++i) { if (isalpha(word[i]) ) { fixedWord += static_cast(tolower(word[i])); } } return fixedWord; }