摘要: 汉诺塔递归 #include <bits/stdc++.h> using namespace std; int n; /* 把 N- 1个从A经过C移动到B,最后一个从A到C N- 1个在B上,经过A移动到C */ void hanuoti(int n,char A,char B,char C){ 阅读全文
posted @ 2020-01-30 08:35 Hazelxcf 阅读(112) 评论(0) 推荐(0)