This commit is contained in:
Maryna Kravtsova 2020-11-22 13:55:30 +01:00
parent 5c57c8a8da
commit e90255eca1

View File

@ -36,7 +36,7 @@ struct tree* read_tree(){
}
struct tree* search(struct tree* this){
char c = getchar();
int c = getchar();
if(this->left != NULL && this->right != NULL){
if(c == 'a'){
@ -47,7 +47,6 @@ struct tree* search(struct tree* this){
printf("%s\n", this->right);
this->right = search(this->right);
}
}
}