buffet
This commit is contained in:
parent
38dfee03b8
commit
d692f08a9e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user