Status QueueInsert(LinkQueue *Q,ElemType e)
{
LinkList p =(LNode*)malloc(sizeof(LNode));
p->data = e;
p->next = NULL;
Q->rear->next = p;
Q->rear = p;
return OK;
}
Status QueueDelete(LinkQueue *Q,ElemType *e)
{
*e = Q->front->next->data;
Q->front->next=Q->front->next->next;
return OK;
}