public void Push(int value) { var cvalue = new no(value); if (Head == null) { Head = cvalue; } else { cvalue.next = Head; Head = cvalue; } Count++; }
public void EnQueue(int value) { no cvalue = new no(value); if (Head == null) { Head = cvalue; } else { no cv = Head; while (cv.next != null) { cv = cv.next; } cv.next = cvalue; } Count++; }
public no(int value) { this.value = value; this.next = null; }