杭电acm1282 回文数

#include <iostream> using namespace std; // 函数功能:判断参数n是否为回文数 // 参数n:须要判断是否为回文数的数 // 参数t:返回值,n的逆序数 bool isPalindrome(int n, int &t) { int temp1 = n; t = 0; while(n > 0) {
相关文章
相关标签/搜索