9 for (
unsigned int i = 0; i < input.length(); i++){
10 if (!isalpha(input[i])){
16 bool isPalindrome =
true;
18 for (
unsigned int i = 0; i < input.length() / 2; i++){
20 if (tolower(input[i]) != tolower(input[input.length() - 1 - i])){
26 cout <<
"The input string is " << (isPalindrome ?
"" :
"not " ) <<
"a palindrome." << endl;