單項(xiàng)選擇題
A.308 B.305 C.266 D.269
A.4321 B.1234 C.1432 D.3241
A.先進(jìn)先出 B.后進(jìn)先出 C.只能進(jìn)行插入 D.只能進(jìn)行刪除
A.Q[4] B.Q[5] C.Q[14] D.Q[15]
A.8 B.16 C.17 D.18
A.sq.rear= (sq.rear+1)mod MAXSIZE; sq.elem[sq.rear]=x; B.sq.elem[sq.rear]=x; sq.rear= (sq.rear+1)mod MAXSIZE; C.sq.front= (sq.front+1)mod MAXSIZE; sq.elem[sq.front]=x; D.sq.elem[sq.front]=x; sq.front= sq.front+1;
A.sq.front= sq.rear B.sq.front= sq.rear+1 C.(sq.front +1)mod MAXSIZE= sq.rear D.(sq.rear+1)mod MAXSIZE= sq.front
A.s=q.front;q.front->next=s.next; B.s=q.front->next;q.front->next=s.next; C.s=q.front->next;q.front=s.next; D.s=q;q.front->next=s.next;
A.每次插入總是在隊(duì)尾,每次刪除總是在隊(duì)頭 B.每次插入總是在隊(duì)尾,每次刪除也總是在隊(duì)尾 C.每次插入總是在隊(duì)頭,每次刪除也總是在隊(duì)頭 D.每次插入總是在隊(duì)頭,每次刪除總是在隊(duì)尾
A.hs->next=s; B.s->next=hs;hs=s; C.s->next=hs->next;hs->next=s; D.s->next=hs;hs=hs->next;
A.top不變 B.top=0 C.top-- D.top++