示例#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();
            }
        }