public SingLink(int Num) { Mv_SLink = new LinkNode[Num]; if (Num == 0) { return; } if (Num == 1) { Mv_SLink[0] = new LinkNode(1, Mv_SLink[0]); } else { Mv_SLink[0] = new LinkNode(1, Mv_SLink[Num - 1]); } for (int i = 1; i < Num - 1; i++) { Mv_SLink[i] = new LinkNode((i + 1), Mv_SLink[i - 1]); } Mv_SLink[Num - 1] = new LinkNode(Num, Mv_SLink[0]); }
public LinkNode(int SizeNum, LinkNode LastObject) { Last = LastObject; Size = new int[SizeNum * 1024]; }