Initializacia

This commit is contained in:
Kozar 2024-11-10 14:51:44 +00:00
parent ed485b28e3
commit ad59e52100

View File

@ -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);
}
}