C语言表达式计算器
为了方便了解流程,在程序中把计算过程也输出了.而且栈操作的实现部分也是自己实现的.r q0~ vLtezD程序用两个栈,optr寄存运算符,opnd寄存操作数和运算结果.输入的表达式以等号结束,例如:2*(1+2)=cB6Z0C]-_NEz
/**************表达式计算器************/
#include <stdio.h>vu?t?f o!pZ
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <malloc.h>
Kmtpy3k)L0q0p(?
#define STACK_SIZE 100gtL+?/kld,T
#define APPEND_SIZE 10
struct SNode{