buffet
This commit is contained in:
parent
18201f08c2
commit
db45879458
@ -22,15 +22,16 @@ struct tree* read_tree(){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(buffer[0] != '\0'){
|
||||
struct tree* node = calloc(1,sizeof(struct tree));
|
||||
memcpy(node->value, buffer,50);
|
||||
if(buffer[0] != '*'){
|
||||
if(node->left == NULL){
|
||||
printf("bvbv");
|
||||
node->left = read_tree();
|
||||
}
|
||||
if(node->right == NULL){
|
||||
printf("bbdf");
|
||||
node->right = read_tree();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user