diff --git a/cv7/program.c b/cv7/program.c index cd0c7bd..266a371 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -85,14 +85,14 @@ void count_items(struct tree* tree, int* count) { int main() { struct tree* root = load_tree(); + printf("Expert z bufetu to vie.\n"); if (!root) { - printf("Chyba: Nepodarilo sa nacitat bazu pravidiel.\n"); + printf("Chybna databaza\n"); return 0; } int count = 0; count_items(root, &count); - printf("Expert z bufetu to vie.\n"); printf("Pozna %d druhov ovocia a zeleniny.\n", count); printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");