This commit is contained in:
Maryna Kravtsova 2020-11-22 17:42:23 +01:00
parent edba1c1a58
commit 985756ffaf

View File

@ -45,7 +45,10 @@ void search(struct tree* this){
printf("Koniec vstupu\n");
exit(0);
}
else if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){
if(buffet[0] == '\n'){
search(this);
}
if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){
printf("Nerozumiem\n");
exit(0);
}
@ -72,7 +75,7 @@ void search(struct tree* this){
search(this->right);
}
search(this);
}
void print_tree(struct tree* tree,int offset){