typedefstruct{datatypedata[1024];inttop;intpop;}seqstack;/****空栈*****/voidSETNULL(seqstack*s){s->top=-1;s->pop=-1;}/****入栈*****/voidPUSH(seqstack*s,datatypex,intnc_size){if(s->top==nc_size-1){s->pop++;s->data[s->pop]=x;}