设数组Data[n]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。
2023-05-15
设数组Data[n]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。
A.SQ.front=SQ.front+1
B.SQ.reart=SQ.rear+1
C.SQ.front=(SQ.front+1)%n
D.SQ.reart=(SQ.rear+1)%n
参考答案:
D
热门标签
2023-05-15
设数组Data[n]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。
A.SQ.front=SQ.front+1
B.SQ.reart=SQ.rear+1
C.SQ.front=(SQ.front+1)%n
D.SQ.reart=(SQ.rear+1)%n
D
热门标签