I made a program to find if a entered string is palindrome or not palindrome but it always says that its not a palindrome
#include #include
You can also use STL to check if a given string is palindrome using function equal. Lets say you have an std::string named x, then the following function call determines if x is palindrome
equal
std::string
x
equal(x.begin(), x.begin() + x.size() / 2, x.rbegin());