摘要: 1 #include <iostream> 2 #include <stack> 3 #include <assert.h> 4 using namespace std; 5 6 class HANOI 7 { 8 private: 9 struct HanioData{10 int x;//所在盘子编号11 int y;//移动后所在编号12 int n;//盘子数13 };14 HanioData hd;15 static int c;16 stack<HanioData> m_stack;17 ... 阅读全文
posted @ 2012-11-09 23:03 cococo点点 阅读(353) 评论(0) 推荐(0)