A.top->link=s B.s->link=top->link;top->link=s C.s->link=top;top=s D.s->link=top;top=top->link
A.front==rear B.front!=NULL C.rear!=NULL D.front==NULL
A.front+1==rear B.rear+1==front C.front==0 D.front==rear