(C)中国大学MOOC-陈越、何钦铭-数据结构-2021秋 02-线性结构4 Pop Sequence 题解
//1.若scan到a时为空栈,栈顶元素设为0//2.若数字a>栈顶元素,typedefstruct{intarray[1000];intindex;}STACK;intmain(){intM;//themaximumcapacityofthestackintN;//thelengthofpushsequenceintK;//thenumberofpopsequencestobecheckedST