📅  最后修改于: 2022-03-11 15:00:34.205000             🧑  作者: Mango
#include
#include
using namespace std;
bool checkPalindrome(string);
int main()
{
string inputString = "palindrom";
cout << checkPalindrome(inputString);
return 0;
}
bool checkPalindrome(std::string inputString)
{
return (inputString == string(inputString.rbegin(), inputString.rend()));
}