From a30bf7ed166854d29c1c5339c880f7351a471934 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sat, 21 Nov 2020 17:00:44 +0100 Subject: [PATCH] buffet --- cv8/program.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cv8/program.c b/cv8/program.c index b4407cd..924e3bc 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -36,12 +36,12 @@ struct tree* read_tree(){ return create_node(); }*/ if(buffer[0] != '*'){ - //if(node->left == NULL){ + if(node->left == NULL){ node->left = read_tree(); - //} - //if(node->right == NULL){ + } + if(node->right == NULL){ node->right = read_tree(); - //} + } } /*else if(string[0] == '*'){ if(node->left == NULL){ @@ -51,9 +51,9 @@ struct tree* read_tree(){ strcpy(node->value, string); } }*/ - if(node->left != NULL && node->right != NULL){ + //if(node->left != NULL && node->right != NULL){ return node; - } + //} } void print_tree(struct tree* node, int offset){