From c8f47a8e0ea806025be6c1d289b5d5ef5733c852 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 20 Oct 2020 21:29:41 +0200 Subject: [PATCH] aktivita1 --- a2/program.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);