漢諾塔問題/梵塔問題c++

#include <iostream> using namespace std; int step; void print(char sta, char fin) { //打印出步驟 cout << "step " << ++step << ": " << sta << " -> " << fin << endl; } void Hanoi(int n, char sta, char
相關文章
相關標籤/搜索