正在加载图片...
Implement the class template template< typename elemtype inl ine void Binary Tree<elemtype> insert(const elemtype& elem) if ( m root) m root- new BTNode<elemtype>(elem); //if succeed in mem allocation, elem will be passed to constructor else m root->insert value(elem)Implement the class template template < typename elemtype > inline void BinaryTree<elemtype>::insert(const elemtype& elem) { if (! m_root) m_root = new BTNode<elemtype>(elem); //if succeed in mem allocation, elem will be passed to constructor else m_root->insert_value(elem); };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有