拆数列,倒序判断 比如761 拆成7 6 1倒序167≠761,就返回167 == 761;也就是一个bool值代表是否为回文数。 #include<iostream> using namespace std; bool isPa(int num) { int t = num; int rnum = 0; while (t != 0) { int remainder = t % 10;//拆 rnum = rnum * 10 + remainder;//***队 t /= 10;//拆分数 }...