有关数据结构与算法设数组data[m]作为循环队列SQ的存储空间,front为对头指针,rear为队尾指针,则执行出对操作后其头指针front值为() A front=(front+1)%mB front=(front-1)%mC front=(front+1)%(m-1)D front

来源:学生作业帮助网 编辑:作业帮 时间:2024/03/29 01:29:40
有关数据结构与算法设数组data[m]作为循环队列SQ的存储空间,front为对头指针,rear为队尾指针,则执行出对操作后其头指针front值为()  A  front=(front+1)%mB  front=(front-1)%mC   front=(front+1)%(m-1)D    front

有关数据结构与算法设数组data[m]作为循环队列SQ的存储空间,front为对头指针,rear为队尾指针,则执行出对操作后其头指针front值为() A front=(front+1)%mB front=(front-1)%mC front=(front+1)%(m-1)D front
有关数据结构与算法
设数组data[m]作为循环队列SQ的存储空间,front为对头指针,rear为队尾指针,则执行出对操作后其头指针front值为()

A front=(front+1)%m
B front=(front-1)%m
C front=(front+1)%(m-1)
D front=front+1

有关数据结构与算法设数组data[m]作为循环队列SQ的存储空间,front为对头指针,rear为队尾指针,则执行出对操作后其头指针front值为() A front=(front+1)%mB front=(front-1)%mC front=(front+1)%(m-1)D front
循环队列的答案为A
非循环为D