设数组Data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为().
举一反三
- 设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )
- 设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为()。 A: front=front+1 B: front=(front+1)%(m-1) C: front=(front-1)%m D: front=(front+1),%m
- 设数组Data[0..m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则出队操作的语句为()。 A: front=front+1 B: front=(front+1)%m C: rear=(rear+1)%m D: front=(front+1)%(m+1)
- 设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。 A: sq↑.front:=sq↑.front+1; B: sq↑.front:=(sq↑.front+1)%maxsize; C: sq↑.rear:=(sq↑.rear+1)%maxsize; D: sq↑.front:=(sq↑.front+1)%(maxsize+1);
- 以数组Data[m+1]作为循环队列SQ的存储空间,front为头指针,rear为队尾指针,则执行出队操作的语句是( )。 A: front=front+1 B: front=(front+1)%m C: front=(front+1)%(m+1) D: rear=(rear+1)%m