buffet
This commit is contained in:
parent
6edcf36f10
commit
d2a173a719
@ -132,13 +132,14 @@ int main(){
|
|||||||
struct tree* tree = NULL;
|
struct tree* tree = NULL;
|
||||||
tree = read_tree();
|
tree = read_tree();
|
||||||
int count = count_leaves(tree);
|
int count = count_leaves(tree);
|
||||||
//print_tree(tree, 3);
|
|
||||||
printf("Expert z bufetu to vie.\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
printf("Pozna %d druhov ovocia a zeleniny.\n", count);
|
printf("Pozna %d druhov ovocia a zeleniny.\n", count);
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||||
|
|
||||||
printf("%s\n", tree->value);
|
printf("%s\n", tree->value);
|
||||||
search(tree);
|
search(tree);
|
||||||
destroy_tree(tree);
|
//destroy_tree(tree);
|
||||||
printf("Koniec\n");
|
printf("Koniec\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user