摘要: # include "stdio.h"void move(char x, char y) //自定义move函数,用来将块从起始柱子x移动到目标柱子y,这里的x,y为形参,不代表具体哪根柱子{ printf("\t%c-->%c\n",x,y);}void hannuota(int n, char a, char b, char c) //自定义hannuota函数,这里的a,b,c为形参,不代表具体哪根柱子{ if (n == 1) move(a, c); //调用自定义函数move ... 阅读全文
posted @ 2013-06-19 13:21 夜雨阑珊 阅读(612) 评论(0) 推荐(0) 编辑