This commit is contained in:
Ivan Leichenko 2024-11-15 07:13:30 +01:00
parent 31cd3999f2
commit 40d875d18f

View File

@ -136,6 +136,7 @@ void interact(struct tree *node, int fstenter)
int main() int main()
{ {
struct tree *root = read_tree(); struct tree *root = read_tree();
printf("Expert z bufetu to vie.\n");
if(root == NULL) if(root == NULL)
{ {
printf("Chybna databaza\n"); printf("Chybna databaza\n");
@ -148,7 +149,6 @@ int main()
printf("Chybna databaza\n"); printf("Chybna databaza\n");
return 0; return 0;
} }
printf("Expert z bufetu to vie.\n");
printf("Pozna %d druhov ovocia a zeleniny.\n", leafs); printf("Pozna %d druhov ovocia a zeleniny.\n", leafs);
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
if (root == NULL) if (root == NULL)