答案:(1)seqn[tail]=data;
tail=(tail+1)%SEQLEN;
(2)data = seqn[head];
head = (head+1)%SEQLEN;
(3)head == tail;
(4)(tail+1)%SEQLEN == head;
(5) while(head!=tail)
head = (head+1)%SEQLEN;
(6) (tail-head+SEQLEN)%SEQLEN
(7)SEQLEN-1
new->next=prev->next;
prev->next=new;
删除pre next中间的那个
struct list_head* temp;
temp=prev->next;
prev->next=prev->next->next;
free(temp);
插入到队尾
new->next=next->next->next;
next->next=new;
判断是否为空
return prev->next==NULL?1:0;
//返回1表示队列为空