refresh
This commit is contained in:
parent
d8bc9cc499
commit
b1e18aa947
@ -51,7 +51,7 @@ static void free_tree(TreeNode *root) {
|
||||
|
||||
static int count_leafs(TreeNode *root) {
|
||||
if (root == NULL) {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int left_count = count_leafs(root->yes_branch);
|
||||
@ -119,8 +119,9 @@ int main() {
|
||||
|
||||
int total_types = count_leafs(root);
|
||||
|
||||
printf("MUDrC to vie.\n");
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Pozna %d druhov ovocia a zeleniny.\n", total_types);
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
|
||||
run_dialog(root);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user