예제 #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     tree = new BinaryTree();
     string[] lines = System.IO.File.ReadAllLines(@"../tree.txt");
     foreach(string line in lines)
     {
         tree.insertValue(Convert.ToInt32(line));
         richTextBox1.AppendText(line);
     }
 }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     tree = new BinaryTree();
 }