using namespace std;
void Move(int n,char a,char b,char c)
{if(n==1)
cout<<a<<"-->"<<c<<endl;
else
{ Move(n-1,a,c,b);
cout<<a<<"-->"<<c<<endl;
Move(n-1,b,a,c);
}
}
int main()
{ int m;
cout<<"Input the number of disks:"<<endl;
cin>>m;
Move(m,'A','B','C');
}
为什么运行结果中会出现A-->B和b-->C等的结果