buffet
This commit is contained in:
parent
eb4a4c2389
commit
5b1c508e35
@ -45,7 +45,6 @@ void search(struct tree* this){
|
|||||||
printf("Koniec vstupu\n");
|
printf("Koniec vstupu\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
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);
|
||||||
@ -66,19 +65,12 @@ void search(struct tree* this){
|
|||||||
printf("%s\n", this->right->value);
|
printf("%s\n", this->right->value);
|
||||||
search(this->right);
|
search(this->right);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(buffer[0] == '\n'){
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(buffer[0] != 'a' || buffer[0] != 'n'){
|
if(buffer[0] != 'a' || buffer[0] != 'n'){
|
||||||
printf("Nerozumiem\n");
|
printf("Nerozumiem\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_tree(struct tree* tree,int offset){
|
void print_tree(struct tree* tree,int offset){
|
||||||
|
Loading…
Reference in New Issue
Block a user