From ef3a24dd07581de7a855de9816aab4d9c067d71f Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Mon, 11 Nov 2024 22:39:13 +0000 Subject: [PATCH] Update cv7/program.c --- cv7/program.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cv7/program.c b/cv7/program.c index 3901d9e..bdbd126 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -91,19 +91,28 @@ int main(void) { p=p->right; break; } + else if(t==-1) + { + printf("Koniec vstupu\n"); + break; + } else if(t!='\n') { printf("Nerozumiem\n"); t=44; break; } + + }while(1); }while(t!=44); - if(t!=44) printf("Koniec\n"); + if(t!=44&&t!=-1) printf("Koniec\n"); destroy_tree(tr); tr=NULL; return 0; } + +