From 38dfee03b853fd28a39c0c24f99ad1817b9fe710 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 17:30:53 +0100 Subject: [PATCH] buffet --- cv8/program.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cv8/program.c b/cv8/program.c index 36d9a8a..a82b6d8 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -45,7 +45,7 @@ void search(struct tree* this){ printf("Koniec vstupu\n"); exit(0); } - if(buffer[0] != '\n'){ + if(buffer[0] == 'a'){ if(this->left->value[0] == '*'){ printf("%s\n", this->left->value); @@ -67,7 +67,13 @@ void search(struct tree* this){ search(this->right); } + + + + if(buffer[0] != '\n'){ + exit(0); } + else{ printf("Nerozumiem\n"); return;