#include"stdio.h"
#define MAX_STACK_SIZE 100 // 스택최대크기
#define MAX_EXPR_SIZE 100 // 수식최대크기
void postfix(void);
int cal(void);
typedef enum {lparen, rparen, plus, minus, times, divide, mod, eos, operand} precedence;
int stack[MAX_STACK_SIZE];
char iexpr[MAX_EXPR_SIZE];
char pexpr[MAX_EXPR_SIZE];
int isp[]={0, 19, 12, 12, 13, 13, 13, 0};
int icp[]={20, 19, 12, 12, 13, 13, 13, 0};