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; }