- 博客(2)
- 资源 (14)
- 收藏
- 关注
转载 C++非递归汉诺塔
#include "stdafx.h" #include using namespace std; //圆盘的个数最多为64 const int MAX = 64; //用来表示每根柱子的信息 struct st{ int s[MAX]; //柱子上的圆盘存储情况 int top; //栈顶,用来最上面的圆盘 char name; //
2013-09-28 16:56:23
612
原创 递归二叉树建立、遍历、删除、打印
#include "stdafx.h" #include using namespace std; char value='A'; class Data{ public: Data(char* nameT):name(new char[2]) { name[0]=*nameT; name[1]='\0'; } ostream& operator>>(ostrea
2013-09-26 16:33:38
572
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人