c++编程 求回文数
c++编程 求回文数
日期:2016-02-11 15:48:17 人气:1
#include using namespace std;bool isPN(int num){ int o = num; int tmp = 0; while(num != 0) { tmp *= 10; tmp += num % 10; num /= 10; } if (tmp == o) { return