p->rear->next=s; p->rear=s;
void EnQueue(LinkQueue *q,Elemtype e) { QueueNode *s; s=(QueueNode *)malloc(sizeof(QueueNode)); s->data=e; s->next=NULL; q->rear->next=s; q->rear=s; }