回文数的判断

bool func(int a)
{
    int tem=0,b=a;
    do{
        tem=tem*10+a%10;
        a/=10;
    }while(a);
    if(tem==b)
        return true;
    else
        return false;
}
原文地址:https://www.cnblogs.com/binanry/p/9566009.html