//--------------------------------------------------------- // This program determines whether a string entered by // the user is a palindrome or not. // // YOUR NAME GOES HERE // Del Searls // Asbury College // Oct 2006 //--------------------------------------------------------- #include #include using namespace std; //----------------------------------------------- // reverse // // Returns a string with the characters of s in // reverse order. // // In Parameter: s (a string) //----------------------------------------------- string reverse(string s) { return ""; } //----------------------------------------------- // isPalindrome // // Returns true if the string s is a palindrome // and false otherwise. // // In Parameter: s (a string) //----------------------------------------------- bool isPalindrome(string s) { return false; } int main() { string str; cout << "Enter a string (Tap Enter to exit): "; getline(cin, str); while (str.length() > 0) { cout << "'" << str << "' is"; if (!isPalindrome(str)) { cout << " not"; } cout << " a palindrome." << endl << endl; cout << "Enter a string (Tap Enter to exit): "; getline(cin, str); } return 0; }