//构造函数 public CQueue() { m_List = new CList(); //这里使用到前面编写的List }
private CList m_List; //调用链表类 #endregion Fields #region Constructors public CStack() { m_List = new CList(); }