diff --git a/cv7/program.c b/cv7/program.c index ffd0948..b3e0900 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -33,14 +33,14 @@ struct tree* load_tree() { return node; } -void print_tree(struct tree* tree,int offset){ +void print_tree(struct tree* tree, int offset){ for (int i = 0; i < offset; i++){ printf(" "); } - printf("%s",tree->question); + printf("%s", tree->value); if (tree->left){ - print_tree(tree->left,offset +3); - print_tree(tree->right,offset +3); + print_tree(tree->left, offset + 3); + print_tree(tree->right, offset + 3); } }