summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4/11.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/4/11.c b/4/11.c
index bf224c7..54bafcf 100644
--- a/4/11.c
+++ b/4/11.c
@@ -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];