摘要:
将数据和二叉链表的各种运算(如二叉链表的生成,二叉链表的前序、中序、后序遍历)封装在一起,构成二叉链表类。Binary_Tree.h:#include <iostream>using namespace std;//定义二叉链表结点类型template<class T>struct Btnode{ T d; Btnode *lchild; Btnode *rchild;};//二叉链表类template<class T>class Binary_Tree{private: Btnode<T> *BT;public: Binary_Tree() { 阅读全文
posted @ 2012-06-04 11:11
2007winter
阅读(224)
评论(0)
推荐(0)

浙公网安备 33010602011771号