示例#1
0
 public void AddSorted(int data)
 {
     if (next == null)
     {
         next = new Node(data);
     }
     else if (data < next.data)
     {
         Node temp = new Node(data);
         temp.next = this.next;
         this.next = temp;
     }
     else
     {
         next.Addsorted(data);
     }
 }