摘要:
#include using namespace std; #define PUTOUT(n,x,z)\ cout " 递归汉诺塔程序 参数定义:n为移动的盘子数,from指开始所在盘,tmp为中间盘,to为目标盘 void haoii(int n,int from,int tmp,int to) { if (n==0) return; //将n-1个盘子以目标盘为中介,从... 阅读全文
posted @ 2009-03-13 15:49
马晓东
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号