示例#1
0
 public void Print()
 {
     if (headNode != null)
     {
         headNode.Print();
     }
 }
示例#2
0
 public void Print()
 {
     Console.Write("|" + data);
     if (Next != null)
     {
         Console.Write("|-->");
         Next.Print();
     }
     else
     {
         Console.WriteLine("|");
     }
 }