– Step 1:檢查佇列是否已空,如果沒有:. – Step 2:將前端指標front往前移,即把其值加1。 – Step 3:取出前端指標front所指的陣列元素。 return queue[++front]; ...
確定! 回上一頁