?}?voidqueue::enqueue(queue&s,stringx,chary)?{link*p;?stringnum; stringnum1; p=newlink; if(y=='c'){p->data=x; p->stickxing=y; p->next=s.rear->next; s.rear->next=p; s.rear=p;} elseif(y=='a') { p->data=x; p->stickxing=y; p->next=s.front->next; s.front->next=p; }?} voidqueue::enqueue1(queue&s,stringx,chary)?{link*p;?stringnum; stringnum1; p=newlink;p->data=x; p->stickxing=y; p->next=s.rear->next; s.rear->next=p; s.rear=p; }?stringqueue::gethead1(queue&s)?{ if(s.front==s.rear) returnNULL; else returns.front->next->data;?}?charqueue::gethead2(queue&s)?{ if(s.front==s.rear) returnNULL; else returns.front->next->stickxing;?}?charqueue::gethead3(queue&s)?{ if(s.front==s.rear) returnNULL; else returns.front->next->xinghao;?}?voidqueue::dlqueue(queue&s)?{ link*p; p=s.front->next; if(p->next==NULL) {