Tower of Hanoi (递归的神奇之力--化繁为简)
/* *Tower of Hanoi* */
#include
using namespace std;
void move(char s, char d) {
cout"<<d<<endl;
}
/* s is source tower, d is target tower
m is middle tower, n id the number of diskes */
void
原创
2015-05-31 22:05:10 ·
429 阅读 ·
0 评论