#include <iostream> #include <cmath> using namespace std; void hanoi(int n, char source, char target, char auxiliary) { if (n == 1) { cout << "移动盘子 1 从 " << source << " 到 " << target << e
#include <iostream> #include <cmath> using namespace std; void hanoi(int n, char source, char target, char auxiliary) { if (n == 1) { cout << "移动盘子 1 从 " << source << " 到 " << target << e