예제 #1
0
 public void PrintInOrder()
 {
     if (root != null)
     {
         root.InOrder();
     }
     Console.WriteLine();
 }
예제 #2
0
 internal void InOrder()
 {
     if (left != null)
     {
         left.InOrder();
     }
     Print();
     if (right != null)
     {
         right.InOrder();
     }
 }
예제 #3
0
 public void InOrder()
 {
     if (left != null)
     {
         left.InOrder();
     }
     Console.Write(this.val + " ");
     if (right != null)
     {
         right.InOrder();
     }
 }