[栈和队列]从中缀向后缀转换表达式

[栈和队列]从中缀向后缀转换表达式

[栈和队列]从中缀向后缀转换表达式

[栈和队列]从中缀向后缀转换表达式

 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 #include <string.h>
 4 #define INIT_STACK_SIZE 100
 5 typedef struct
 6 {
 7     char * chOperator;
 8     int dwtop;
 9 }OPND;
10 
11 void InitStack(OPND *);
12 char Pop(OPND *);
13 void Push(OPND *,char );
14 char GetTop(OPND);
15 
16 char ComparePri(char op1,char op2);
17 void printStack(OPND);
18 
19 char stringBuffer[128] = {'