#include#include#definestacksize2//车站//容量///////////////////////////////////////////////////////typedefstructSnode{intnumber;floatint_time[2];floatbian_time[2];}record;typedefstruct{record*base;record*top;intsize;}Stack;/////////////////////////////////////////////////////typedefstructQnode{intnumber;floatint_time[2];structQnode*next;}Qnode,*Queue;typedefstruct{Queuefront;Queuerear;}Linkqueue;voidxunhuan(StackL,LinkqueueQ);voidjixu(StackL,LinkqueueQ);//////////////////////////////////////////////////////////////////////////////////////////////////////////voidInitStack(Stack&L)//堆栈操作{L
base=(record*)malloc(sizeof(Snode)*stacksize);if(
base)exit(0);L
base;L
size=stacksize;}/////////////////////////////////////////////////////voidinput(Stack&L,recordh){*L
top++=h;}////////////////////