正在加载图片...
Define of class template template typename elemtype> class Binary iree public Binary) Binary Tree(const Binary Tree&) Binary Treeo Binary Tree& operator(const Binary Tree&) bool empty( return m root==0; j void insert( const elemtype& elem) void remove(const elemtype& elem) void clear private BTNode<elemtype>m root void copy (b TNode<elemtype>*dest, bTNode<elemtype>* src) //copy the src sub-tree to destDefine of class template template < typename elemtype > class BinaryTree { public: BinaryTree(); BinaryTree(const BinaryTree&); ~BinaryTree(); BinaryTree& operator=(const BinaryTree&); bool empty() { return m_root = = 0; } void insert(const elemtype& elem); void remove(const elemtype& elem); void clear(); private: BTNode<elemtype>*m_root; void copy(BTNode<elemtype>* dest, BTNode<elemtype>* src); //copy the src sub-tree to dest };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有