コード例 #1
0
ファイル: List.cs プロジェクト: kosya/for_study
 public List()
 {
     head = new ListElement();
     head.SetNum(0);
     head.SetNext(null);
     length = 0;
 }
コード例 #2
0
ファイル: List.cs プロジェクト: Ershov-Alexander/for_study
 public List()
 {
     head = new ListElement();
     head.SetNum(0);
     head.SetNext(null);
     length = 0;
 }
コード例 #3
0
ファイル: List.cs プロジェクト: Ershov-Alexander/for_study
 public virtual void Insert(int value, ListElement pos)
 {
     ListElement temp = new ListElement();
     temp.SetNum(value);
     temp.SetNext(pos.GetNext());
     pos.SetNext(temp);
     ++length;
 }
コード例 #4
0
ファイル: List.cs プロジェクト: kosya/for_study
 public virtual void Insert(int value, ListElement pos)
 {
     ListElement temp = new ListElement();
     temp.SetNum(value);
     temp.SetNext(pos.GetNext());
     pos.SetNext(temp);
     ++length;
 }