标签:
int ReverseInterage(int Num) { long long tmp = 0; for (; Num; Num /= 10) tmp = tmp * 10 + Num % 10; return (tmp <= INT_MAX && tmp >= INT_MIN) ? tmp : 0; }
翻转整数
原文地址:http://www.cnblogs.com/shihaochangeworld/p/5674808.html