예제 #1
0
        static void Insert(int x)
        {
            if (null == chain)
            {
                chain = new IntNode(x);
                return;
            }
            IntNode temp = new IntNode(x, chain.GetNext());

            chain.SetNext(temp);
        }
예제 #2
0
 public void InsertAfter(IntNode temp)
 {
     temp.SetNext(this.GetNext());
     this.SetNext(temp);
 }