符佳亲
如题,代码如下,欢迎探讨!!![code=C/C++][/code]#include typedef int ElemType; #define MAXNUM 16struct stack{ElemType data[MAXNUM];int top;};void StackInit(struct stack *stack){int i = 0;for(;i< MAXNUM;i++){stack->data[i] = 0;}stack->top = 0; }void StackPush(struct stack *stack,ElemType c){if(MAXNUM == stack->top) {printf("The stack is full ");return;}stack->data[stack->top++] = c;}ElemType StackPop(struct stack *stack){if(0 == stack->top){printf("The stack is empty "); }int ChangeToPostfix(char *str){int i = 0,flag = 0; int c,ch;struct stack ch_stack;struct stack op_stack;StackInit(&ch_stack);StackInit(&op_stack);while( != (c = *(str + i))) {if((* == c) || (/ == c) || (( == c)){flag = 0;StackPush(&op_stack,c);}else if() == c){flag = 0;while(( != (c = StackPop(&op_stack))){StackPush(&ch_stack,c);}if(0 == op_stack.top){printf("the ( hasnt found when the ) come in! ");return -1;}}else if((+ == c)|| (- == c)){flag = 0;if(0 != op_stack.top) { while(( != (ch = StackPop(&op_stack))){StackPush(&ch_stack,ch);if(0 == op_stack.top){break;}}}StackPush(&op_stack,c);}else if((c >= 0) && (c
当然了,看完上述的分析觉得还不够尽兴的话,也可以再看看大家大盈之家2.0养老年金险的收益评测,再下投保结论:
想买大家养老大盈之家2.0养老年金险?看完它的保障和收益再说weixin.qq.275.com

全网同号:留学查一查,欢迎搜索!

花更少的钱,买对的留学
为你寻找性价比最高的产品
热点问题
-
05-20
-
05-15
-
05-21
-
01-24
-
05-15
-
05-06
-
03-05
-
03-11
-
05-22
-
04-09
-
02-21
-
01-27
-
03-06
-
02-21
-
02-26
最新问题
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08
-
11-08