队列是要求一端插入,另一端删除的特殊线性表,它遵循“先进先出”的特点
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 50typedef char DateType;typedef struct{ DateType q[MAXSIZE]; int front,rear;}SeqQue;void InitQue(SeqQue* sq){ sq->front=sq->rear=0; printf("\n\t\t\t初始化队列成功!");}int InsertQue(SeqQue* sq,DateType x){ if(sq->rea...