// tests for palindrome property // Walt Savitch // // example palindromes: "civic", "racecar" // "Madam, I'm adam" // // 03/09/00 #include #include "palindrome.h" using std::cin; using std::cout; using std::endl; int main() { string str; cout << "Enter a palindrome candidate " << "and hit return\n"; getline(cin, str); if (isPal(str)) cout << "\"" << str << "\" is a palindrome "; else cout << "\"" << str << "\" is not a palindrome "; cout << endl; }