汉诺塔问题
摘要:#include using namespace std; /*将src针上最上面一个盘子移到dest针上*/ void move(char src,char dest) { cout " > n; cout << "步骤分别是"<<endl; hanoi(n,'A','B','C'); return 0; }
阅读全文
posted @ 2016-03-28 18:01
posted @ 2016-03-28 18:01
posted @ 2016-03-20 00:12
posted @ 2016-03-10 16:04