Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, fox. Let's climb some trees.");
            Tree tree = new Tree();

            for (int i = 0; i < 10; i++)
            {
                tree.Add(Byte());
            }
            // End of For loop (Adding values)

            byte[] array = tree.ToArray();

            Console.WriteLine("Time to print the sorted array!");
            for (int i = 0; i < array.Length; i++)
            {
                Console.WriteLine("Index " + i + ": " + array[i].ToString());
            }
        }