public void OvWHListAddSort(int Data) { if (list_Head != null) { if (list_Head.node_Data < Data) { OvWHNode NewNode = new OvWHNode(list_Head, Data); list_Head = NewNode; } else { OvWHNode TempNode = list_Head; while (TempNode.node_Next != null && TempNode.node_Next.node_Data >= Data) TempNode = TempNode.node_Next; OvWHNode NewNode = new OvWHNode(TempNode.node_Next, Data); TempNode.node_Next = NewNode; } } else list_Head = new OvWHNode(null, Data); list_Count++; }
public OvWHList() { list_Head = null; list_Count = 0; }
public void OvWHListAdd(int Data) { OvWHNode NewNode = new OvWHNode(list_Head, Data); list_Head = NewNode; list_Count++; }
public OvWHNode(OvWHNode Next, int Data) { node_Data = Data; node_Next = Next; }