2016年5月16日

二叉树的基本操作

摘要: #include using namespace std; typedef struct Tree { char data1; struct Tree *lchild, *rchild; }Tree; template struct Node { T data; Node* next; }; template class stack { Node... 阅读全文

posted @ 2016-05-16 22:09 Kooing 阅读(146) 评论(0) 推荐(0) 编辑

我的模板栈

摘要: 1 template 2 struct Node 3 { 4 T data; 5 Node* next; 6 }; 7 8 template 9 class stack 10 { 11 Node* top; 12 public: 13 stack():top(NULL){} 14 void push(T n); 15 T pop... 阅读全文

posted @ 2016-05-16 19:31 Kooing 阅读(111) 评论(0) 推荐(0) 编辑

导航