漢諾塔C++代碼

一個簡單的漢諾塔遊戲代碼,很簡單,不過挺有意思 #include "stdafx.h" #include<iostream> using namespace std; class hanio  //定義一個類 { public :     ~hanio(){}  //析構函數     void  han(int n,char a,char b,char c)     {         if(n=
相關文章
相關標籤/搜索