• 2022-06-16
    ​已知循环队列Q->; element[MAXSIZE],队头指示器为Q->;front,队尾指示器为Q->;rear(指向真实队尾的下一个位置),则该队列中元素个数为:()‍ ‍
    A: Q->;rear-Q->;front
    B: Q->;rear-Q->;front+1
    C: (Q->;rear-Q->;front+ MAXSIZE)% MAXSIZE
    D: (Q->;rear-Q->;front+1+ MAXSIZE)% MAXSIZE
  • 举一反三