This commit is contained in:
Maryna Kravtsova 2020-11-22 16:16:16 +01:00
parent d2a173a719
commit 7455eb5a3d

View File

@ -47,6 +47,7 @@ void search(struct tree* this){
} */ } */
if(buffer[0] == 'a'){ if(buffer[0] == 'a'){
if(this->left->value[0] == '*'){ if(this->left->value[0] == '*'){
printf("%s\n", this->left->value);
printf("%s\n", this->left->value); printf("%s\n", this->left->value);
return; return;
} }
@ -139,7 +140,7 @@ int main(){
printf("%s\n", tree->value); printf("%s\n", tree->value);
search(tree); search(tree);
//destroy_tree(tree); destroy_tree(tree);
printf("Koniec\n"); printf("Koniec\n");
return 0; return 0;
} }