0001 template <typename T> void BinNode<T>::attachLc( BinNodePosi<T> x ) 0002 { lc = x; if ( x ) x->parent = this; } //接入左子树 0003 0004 template <typename T> void BinNode<T>::attachRc( BinNodePosi<T> x ) 0005 { rc = x; if ( x ) x->parent = this ; } //接入右子树