以输入正确的逆波兰表达式为前提,计算结果。。。
#define MAXSIZE 10 typedef struct Node { double data; struct Node *next; }Node; typedef struct Stack { Node *top; }Stack; void s_push(Stack *s, double data); void s_pop(Stack *s, double *d); int main() { Stack s = {NULL}; char l[MAXSIZE] = {0}; char el; double d,e; int i = 0; printf("输入逆波兰表达式,以#结尾: "); scanf("%c", &el); while(el!='#') { if(isdigit(el) || el == '.') { l[i] = el; l[i+1] = '