#include
void hanoi(int n,char a,char b,char c){
if(n==0)
return;
hanoi(n-1,a,c,b);
printf("%c %c\n",a,b);
hanoi(n-1,c,b,a);
}
int main(){
hanoi(3,'a','b','c');
}
hanoi(3,'a','b','c');
改成
hanoi(3,'a','c','b');