【发布时间】:2018-03-16 21:09:33
【问题描述】:
bool isPalindrome(const char *s1)
{
const char *start, *end;
start = s1;
end = s1 + strlen(s1) - 1;
while (start < end)
if(*start++ != *end--)
return false;
return true;
}
我写了检查回文的代码,但忽略了忽略上下差异的要求。 我对此一无所知。 你能帮助我吗? 谢谢!
【问题讨论】:
标签: c++ palindrome