Hanoi汉诺塔
摘要:#汉诺塔# 代码 #include <iostream> #include <stdio.h> using namespace std; //汉诺塔函数,参数,n剩余棋子数,prime棋子初始所在杆,help移动棋子需要借助的杆,target最终移动的目标杆 void hanoi(int n, ch
阅读全文
posted @ 2017-12-22 23:24
posted @ 2017-12-22 23:24
posted @ 2017-12-19 21:46
posted @ 2017-12-19 21:20