但是不要忘了,加入物件至佇列中時呼叫 new 產生新節點,雖然在成員函數 dequeue()中用 delete 清除節點,但是並不保證程式結束時佇列會為空。因此,類別仍需定義明確的 ...
確定! 回上一頁