设有一循环队列SQ,现将数据x进行入队操作,语句为()
A.正确答案DSQ.front=(SQ.front+1)%maxsize;
B.SQ.rear=(SQ.rear+1)%maxsize;
C.SQ.front=(SQ.front+1)%maxsize;
SQ.data[SQ.front]=x;
D.SQ.rear=(SQ.rear+1)%maxsize;
SQ.data[SQ.rear]=x;
设有一循环队列SQ,现将数据x进行入队操作,语句为()
设有一循环队列SQ,现将数据x进行入队操作,语句为()
A.正确答案DSQ.front=(SQ.front+1)%maxsize;
B.SQ.rear=(SQ.rear+1)%maxsize;
C.SQ.front=(SQ.front+1)%maxsize;
SQ.data[SQ.front]=x;
D.SQ.rear=(SQ.rear+1)%maxsize;
SQ.data[SQ.rear]=x;