摘要:
#include#include//移动次数int hanoi(int num){ static int all = 0; if (num == 1) { return 1; } else { all = hanoi(num - 1) ... 阅读全文
摘要:
输入任一整数,实现倒序。1、循环实现int reverseNum(int num){ int newNum = 0; while (num) { int wei = num % 10; newNum = newNum * 10 + wei; ... 阅读全文