二叉樹的創建

  定義樹的結構:html 1 typedef int ElemType; 2 3 struct BinaryTreeNode 4 { 5 ElemType m_nValue;//結點值 6 BinaryTreeNode *m_pLeft;//左節點地址 7 BinaryTreeNode *m_pRight;//右節點地址 8 }; 將二叉樹構建成一個完整的,若不存在的節
相關文章
相關標籤/搜索