C语言用双向链表实现队列
参考代码
#include <stdio.h>
#include <stdlib.h>typedef struct Node {char ch;struct Node* prev;struct Node* next;
}Node;typedef struct Queue {int size;Node* begin;Node* end;
}Queue;void Push(Queue* q, char input)
{Node* push (Node*)malloc(sizeo…