output edit cv7

This commit is contained in:
Ivan Leichenko 2024-11-15 05:51:11 +01:00
parent d819a083df
commit 28671d5682

View File

@ -80,7 +80,7 @@ void interact(struct tree *node)
return; return;
} }
printf("%s (a/n) ?\n", node->value); printf("%s\n", node->value);
if (node->left == NULL && node->right == NULL) if (node->left == NULL && node->right == NULL)
{ {
@ -111,7 +111,9 @@ void interact(struct tree *node)
int main() int main()
{ {
struct tree *root = read_tree(); struct tree *root = read_tree();
printf("Expert z bufetu to vie.\n");
printf("Pozna %d druhov ovocia a zeleniny.\n", count_leaf_nodes(root));
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
if (root == NULL) if (root == NULL)
{ {
printf("Chyba pri nacitani databazy pravidiel.\n"); printf("Chyba pri nacitani databazy pravidiel.\n");