From e6331aefce6ace1720fea3c0f7d4992ec28c0fe8 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 17:50:54 +0100 Subject: [PATCH] buffet --- cv8/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cv8/program.c b/cv8/program.c index b73b4c7..89fa799 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -48,12 +48,11 @@ void search(struct tree* this){ if(buffer[0] == '\n'){ search(this); } - if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){ + /*if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){ printf("Nerozumiem\n"); exit(0); - } - - + }*/ + if(buffer[0] == 'a'){ if(this->left->value[0] == '*'){ printf("%s\n", this->left->value); @@ -75,6 +74,7 @@ void search(struct tree* this){ search(this->right); } + printf("Nerozumiem\n"); }