求反序数的小算法 int Reverse(int x){ int revx = 0; while( x!= 0){ revx *=10; revx += x%10; x /= 10; } return revx; }