问题:
[单选题]容量为m的循环队列Q,队头位置是front,则出队时对front的操作是( )?
AQ.front=Q.front-1
BQ.front=(Q.front-1)%m
CQ.front=Q.front+1
DQ.front=(Q.front+1)%m
AQ.front=Q.front-1
BQ.front=(Q.front-1)%m
CQ.front=Q.front+1
DQ.front=(Q.front+1)%m
Copyright © 2024 www.daanwo.com All Rights Reserved |