예제 #1
0
 public void Show()
 {
     if (!Empty)
     {
         SingleLinkedNode <T> p = head.Next;
         while (p.Next != head.Next)
         {
             p.Show();
             Console.Write("  ");
             p = p.Next;
         }
         p.Show();
     }
 }
예제 #2
0
        public void Show()
        {
            SingleLinkedNode <T> p = first;

            while (p != null)
            {
                p.Show();
            }
        }