In a circular queue, how do you increment the rear end of the queue? ... for(int i=front; i<=rear; i++) { newQ[i-front] = Q[i%CAPACITY]; } Q = newQ; ...
確定! 回上一頁