From 70522619e36e04328acb50e41a3fe8ea222554b3 Mon Sep 17 00:00:00 2001 From: Denis Landa Date: Thu, 20 Nov 2025 21:49:26 +0100 Subject: [PATCH] 12dsddd --- du6/program.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/du6/program.c b/du6/program.c index 188fee9..099cea0 100644 --- a/du6/program.c +++ b/du6/program.c @@ -14,10 +14,8 @@ int count_items = 0; struct tree* read_tree() { char buffer[SIZE]; - if (!fgets(buffer, SIZE, stdin)) return NULL; - if (buffer[0] == '\n') return NULL; @@ -94,9 +92,9 @@ int main() { printf("Expert z bufetu to vie.\n"); printf("Pozna %d druhov ovocia a zeleniny.\n", count_items); + printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); run(root); - destroy_tree(root); return 0; }