buffet
This commit is contained in:
parent
9fab76cb35
commit
a30bf7ed16
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user