#include<iomanip> #include<iostream> using namespace std; int count=0; void move(int n, char one, char three) { cout<<"把第"<<setw(3)<<n<<" 个盘子从 "<<one<<" 塔上"<<"移至 "<<three<<" 塔"<<endl; count=count+1; } void Hanoi(int n,char one,char two,char three) //将n个盘子从one柱移至three柱(借助two柱) {