c语言递归调用解决汉诺塔问题程序详细解答。当n=3时,写出程序运行过程。 #include <st

2025-04-14 12:24:53
推荐回答(1个)
回答1:

input the number of disks:3

the step to moving 3 disks

A-->C

A-->B
C-->B
A-->C
B-->A
B-->C
A-->C

纸笔画了我老半天。。。楼主给个精