#include"stdio.h"
#include"math.h"
#define StackMaxSize 100
typedef struct{
char stack[StackMaxSize];
int top;
}Stack1;
typedef struct{
int stack[StackMaxSize];
int top;
}Stack2;
int In(char c){
if((c=='(')||c==(')')||(c=='+')||(c=='-')||(c=='*')||(c=='/')||(c=='#'))
return 1;
else
return 0;
}
void InitStack1(Stack1 *S){
S->top=-1;
}
void InitStack2(Stack2 *S){
S->top=-1;
}
void Push1(Stack1 *S,char ch){
(S->top)++;
S->stack[S->top]=ch;
}
void Push2(Stack2 *S,int ch){
(S->top)++;
S->stack[S->top]=ch;
}
char Precede(char ch1,char ch2)
{