#include #include #include using namespace std; const int FIELD_SIZE = 20; typedef string word; string bah(string s, int(*x)(int)); string hab(string s); void PL(word s, word label); int main() { string phrase; string stripped; string reversed; string reverseStripped; phrase = "Hello World ? ? !!..."; stripped = bah(phrase, ispunct); reversed = hab(phrase); reverseStripped = hab(stripped); PL(phrase,"Phrase"); PL(stripped,"Stripped"); PL(reversed,"Reversed"); PL(reverseStripped,"Reverse Stripped"); return 0; } // this function will reverse a string. Isn't the name clever // I will just change variable names in this one string hab(string x) { string r; size_t j; for(j=0;j