diff --git a/a2/program.c b/a2/program.c index da01086..18e7180 100644 --- a/a2/program.c +++ b/a2/program.c @@ -10,7 +10,6 @@ struct stack{ }s; void push(char ch){ - if(s.size < 100){ assert(s.size < 100); s.size++; @@ -20,7 +19,6 @@ void push(char ch){ exit(0); } - } void pop(){ @@ -61,7 +59,6 @@ char right_pair(char a){ b = '>'; } return b; - } char gettop(){ @@ -74,6 +71,8 @@ int main(){ //memset(&mystack, 0 , sizeof(struct stack)); char line[100]; s.size = -1; + + printf("Read: "); char *x = fgets(line, 100, stdin); int l = strlen(line);