Ejemplo n.º 1
0
        public void PrintTree()
        {
            if (Value == '\0')
            {
                return;
            }
            else
            {
                Console.Write(this.Value);
            }

            if (LeftUp != null)
            {
                LeftUp.PrintTree();
            }
            if (RightUp != null)
            {
                RightUp.PrintTree();
            }
            if (LeftDown != null)
            {
                LeftDown.PrintTree();
            }
            if (RightDown != null)
            {
                RightDown.PrintTree();
            }
        }