From 00d8213551cf348a2cc36efc11ea874d09a2a7ed Mon Sep 17 00:00:00 2001 From: Kozar Date: Sun, 10 Nov 2024 15:12:57 +0000 Subject: [PATCH] Initializacia --- cv7/program.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index cbda220..a237407 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -64,9 +64,7 @@ void count_items(struct tree* tree, int* count){ } int main() { - printf("Nacitanie baze pravidiel:\n"); struct tree* root = load_tree(); - if (!root) { printf("Chyba: Nepodarilo sa nacitat bazu pravidiel.\n"); return 1; @@ -75,8 +73,9 @@ int main() { int count = 0; count_items(root, &count); printf("Pozna %d druhov ovocia a zeleniny.\n", count); - printf("Strom pre ladenie:\n"); - print_tree(root, 0); + printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); + + run_tree(root); destroy_tree(root); return 0;