摘要: //汉诺塔问题 //输出移动的步骤 #include <stdio.h> //记录步数 int i = 1; //n 第几号盘移动, from 移动塔 to 目标塔 void move(int n, char from,char to){ printf("第%d次移动第%d号盘: %c >%c\n" 阅读全文
posted @ 2019-02-25 17:31 峰寒 阅读(2770) 评论(0) 推荐(0) 编辑