摘要: /*逆波兰表达式实现简单的计算器功能*/#include <stdio.h>#include <stdlib.h>#include <ctype.h>#define MAXOP 100 #define NUMBER '0'#define MAXVAL 100#define BUFSIZE 100int getop(char []);void push(double);double pop(void);int getch(void);void ungetch(int);main(){ int type; double op2; char s[M 阅读全文
posted @ 2012-12-06 13:28 Sayary 阅读(294) 评论(0) 推荐(0)