正在加载图片...
Define of class template(cont template typename elemtype nline Binary Tree<elemtype> Binary Tree( const Binary Tree& rhs) i copy(m root, rhs. m root) template typename elemtype inline Binary Tree<elemtype>: Binary TreeO i clear template typename elemtype inline Binary Tree& Binary Tree<elemtype> operator=(const Binary Tree& rhs) if(this ! =&rhs) clear( copy(m root, rhs m root) return * thisDefine of class template (cont.) template < typename elemtype > inline BinaryTree<elemtype>::BinaryTree(const BinaryTree& rhs) { copy(m_root, rhs.m_root); }; template < typename elemtype > inline BinaryTree<elemtype>::~BinaryTree() { clear(); }; template < typename elemtype > inline BinaryTree& BinaryTree<elemtype>::operator=(const BinaryTree& rhs) { if (this != &rhs) { clear(); copy(m_root, rhs.m_root); } return *this; };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有