This commit is contained in:
Maryna Kravtsova 2020-11-22 17:33:55 +01:00
parent 38dfee03b8
commit d692f08a9e

View File

@ -50,7 +50,7 @@ void search(struct tree* this){
if(this->left->value[0] == '*'){
printf("%s\n", this->left->value);
printf("Koniec\n");
return;
exit(0);
}
printf("%s\n", this->left->value);
search(this->left);
@ -61,7 +61,7 @@ void search(struct tree* this){
if(this->right->value[0] == '*'){
printf("%s\n", this->right->value);
printf("Koniec\n");
return;
exit(0);
}
printf("%s\n", this->right->value);
search(this->right);
@ -70,11 +70,11 @@ void search(struct tree* this){
if(buffer[0] != '\n'){
if(buffer[0] == '\n'){
exit(0);
}
else{
if(buffer[0] != 'a' || buffer[0] != 'n'){
printf("Nerozumiem\n");
return;
}