/// <summary> /// 出隊 /// </summary> public int DeQueue() { //功 能:出隊 //返回值: 2147483647 表示為空隊列無返回 int QueValue; if (!IsNull()) { //不為空的隊列 //移動到隊列的頭 m_List.MoveFrist(); //取得目前的值 QueValue = m_List.GetCurrentValue(); //刪除出隊的資料 m_List.Delete(); return(QueValue); } return(2147483647); }
/// <summary> /// 出队 /// </summary> public int DeQueue() { //功 能:出队 //返回值: 2147483647 表示为空队列无返回 int QueValue; if (!IsNull()) { //不为空的队列 //移动到队列的头 m_List.MoveFrist(); //取得当前的值 QueValue = m_List.GetCurrentValue(); //删除出队的数据 m_List.Delete(); return(QueValue); } return(2147483647); }
/// <summary> /// 刪除取得目前的結點 /// </summary> public void Delete() { m_List.Delete(); }