#include "queue.h" int main(void) { ElemType e; pqueue head, tail; InitQueue(&head); InitQueue(&tail); while ((e = getchar()) != '\n') { EnQueue(&tail, &e); if (EmptyQueue(&head)) head = tail; } PrintQueue(&head); ElemType retval; DeQueue(&head, &retval); printf("'%c' quit queue\n",retval); PrintQueue(&head); RsQueue(&head); return 0; }