Exemplo n.º 1
0
 public List()
 {
     head = new ListElement();
     head.SetNum(0);
     head.SetNext(null);
     length = 0;
 }
Exemplo n.º 2
0
 public List()
 {
     head = new ListElement();
     head.SetNum(0);
     head.SetNext(null);
     length = 0;
 }
Exemplo n.º 3
0
 public virtual void Insert(int value, ListElement pos)
 {
     ListElement temp = new ListElement();
     temp.SetNum(value);
     temp.SetNext(pos.GetNext());
     pos.SetNext(temp);
     ++length;
 }
Exemplo n.º 4
0
 public virtual void Insert(int value, ListElement pos)
 {
     ListElement temp = new ListElement();
     temp.SetNum(value);
     temp.SetNext(pos.GetNext());
     pos.SetNext(temp);
     ++length;
 }