ALL > Computer and Education > courses > university courses > undergraduate courses > An Overview of Computer Science > ZSTU 2018-2019-1 class > student homework directory > 2018329621221_黄煜坤 >
homework_5 Version 0
👤 Author: by 1299654109qqcom 2018-11-25 09:15:28
void hanoi(int n,char x,char y,char z)

{

if(n == 1) move(x,1,z);

else

{

hanoi(n-1,x,z,y);

move(x,n,z); hanoi(n-1,y,x,z);

}

}

Please login to reply. Login

Reversion History

Loading...
No reversions found.