示例#1
0
 public void MakeEmpty()
 {
     Root = null;
 }
示例#2
0
 public BinaryTree(BinaryNode <T> rootNode)
 {
     Root = rootNode;
 }
示例#3
0
 public BinaryTree(T rootItem)
 {
     Root = new BinaryNode <T>(rootItem, null, null);
 }
示例#4
0
 public BinaryTree()
 {
     Root = null;
 }
示例#5
0
 public BinaryNode(T element, BinaryNode <T> lt, BinaryNode <T> rt)
 {
     Element = element;
     Left    = lt;
     Left    = rt;
 }
示例#6
0
 public StNode(BinaryNode <T> n)
 {
     timesPopped = 0;
     node        = n;
 }