output edit cv7
This commit is contained in:
parent
d819a083df
commit
28671d5682
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user