#include
useing namespace std;
void move(char getone,char putone)
{
cout<
{
void move(char getone,char putone);
if(n==1) move(one,three);
else
{
hanoi(n-1,one,three,two);
move(one,three);
hanoi(n-1,two,ome,three);
}
}
int main()
{
void hanoi(int n,char one,char two,char three);
int m;
cout<<"Enter the number of disks:";
cin>>m;
cout<"the steps to moving"<
}
大概就是这个意思,慢慢看吧
递归调用对象,