status pushop(opstack &opstack,char &op){
if(opstack.top<n){
opstack.top++;
opstack.array[opstack.top-1]=op;
return ok;
}
else return error;
}
//操作符出栈的函数
status popop(opstack &opstack,char &op){
if(opstack.top>0){
op=opstack.array[opstack.top-1];
opstack.top--;
return ok;
}