buffet
This commit is contained in:
parent
ecbf7e1b89
commit
437b0b7d19
@ -101,12 +101,14 @@ int count_l(struct tree* node){
|
|||||||
|
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
printf("Expert z bufetu to vie\n");
|
|
||||||
printf("Pozna 2 druhov ovocia a zeleniny\n");
|
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
|
||||||
struct tree* tree = NULL;
|
struct tree* tree = NULL;
|
||||||
|
|
||||||
tree = read_tree();
|
tree = read_tree();
|
||||||
|
int count = count_l(tree);
|
||||||
|
|
||||||
|
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");
|
||||||
|
|
||||||
//print_tree(tree, 3);
|
//print_tree(tree, 3);
|
||||||
//display(tree);
|
//display(tree);
|
||||||
destroy_tree(tree);
|
destroy_tree(tree);
|
||||||
|
Loading…
Reference in New Issue
Block a user