以前写过一个,支持四则运算以及括号运算,采用栈实现#include#include#define null 0#define max 100typedef struct date /*定义字符栈*/{
char sk[max];
int top;}seqstack;typedef struct da
/*定义数据栈*/{
int sk[max];
int top;}stack;void push(seqstack *s,char x) /*进栈*/{
if(s->top==max-1)
{ ...