2007winter

做自己真心想做的事,你就没事了

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2012年6月4日

摘要: 将数据和二叉链表的各种运算(如二叉链表的生成,二叉链表的前序、中序、后序遍历)封装在一起,构成二叉链表类。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)