bool digui(char*src, int len)
{ if (len <= 1) return true; else { if (*src++ != src[len - 1]) return false; else return digui(src, len - 2); } } int main() { char*p = "- 1234567654321-"; cout << strlen(p) <<endl; bool flag=digui(p, strlen(p)); cout << flag << endl; }