diff options
Diffstat (limited to '4/11.c')
| -rw-r--r-- | 4/11.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,6 +6,7 @@ #define MAXOP 100 #define HEIGHT 1000 +#define BUFSIZE 100 #define NUM '0' #define FUN '1' @@ -118,6 +119,11 @@ int main(int argc, char *argv[]) { return 0; } +int bufp = 0; +char buf[BUFSIZE]; + +int getch() { return (bufp > 0) ? buf[--bufp] : getchar(); } + int sp = 0; double stack[HEIGHT]; |
