#include <iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
string a;
int is_palindrome = 1;
cout << "Please input a string .." << endl;
cin >> a;
int i = a.length();
vector<int>b;
for (int m = 0; m <= i;m++) {
if ( 65 <= a[m]&&a[m] <= 90 || 97 <= a[m]&&a[m] <= 122) {
b.push_back(a[m]);
break;
}
for (; ;) {
if ('A' <= a[m] && 'Z' >= a[m]) {
b.push_back(a[m] - 32);
}break;
}
}
int len = b.size();
for (int i = 0; i < len / 2; i++)
{
if (a[i]!=a[len - 1 - i])
{
is_palindrome = 0;
break;
}
}
if (is_palindrome)
cout << "The string is a palindrome" << endl;
else
cout << "The string is not a palindrome" << endl;
return 0;
}
11-13
11-13