This commit is contained in:
Maryna Kravtsova 2020-11-21 16:59:59 +01:00
parent ca2b58c08e
commit 9fab76cb35

View File

@ -36,12 +36,12 @@ struct tree* read_tree(){
return create_node(); return create_node();
}*/ }*/
if(buffer[0] != '*'){ if(buffer[0] != '*'){
if(node->left == NULL){ //if(node->left == NULL){
node->left = read_tree(); node->left = read_tree();
} //}
if(node->right == NULL){ //if(node->right == NULL){
node->right = read_tree(); node->right = read_tree();
} //}
} }
/*else if(string[0] == '*'){ /*else if(string[0] == '*'){
if(node->left == NULL){ if(node->left == NULL){