public void remove() { CNode old = m_cursor.Next; if (m_cursor == old) m_cursor = null; else m_cursor.Next = old.Next; }
public void remove() { CNode old = m_cursor.Next; if (m_cursor == old) { m_cursor = null; } else { m_cursor.Next = old.Next; } }
public void add(string n) { CNode v = new CNode(); v.Elem = n; if (isEmpty()) { v.Next = v; //circul with only 1 item m_cursor = v; } else { v.Next = m_cursor.Next; m_cursor.Next = v; } }
public void advance() { m_cursor = m_cursor.Next; }
public CircularList() { m_cursor = null; }