摘要:
#include#include#include#includetypedef struct str{ int cap; int size; int h; int t; int *arr;}que;void stque2(que *q ){ q->h=0; q->t=0; q->size=0;}void stque(que *q,int n){ q->cap=n; q->h=0; q->t=0; q->size=0; q->arr=(int *)malloc(sizeof(que)*n);}int inque( que *q, int x){ q 阅读全文