buffet
This commit is contained in:
parent
0f0e5d1188
commit
edba1c1a58
@ -44,7 +44,13 @@ void search(struct tree* this){
|
||||
if(r == NULL){
|
||||
printf("Koniec vstupu\n");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
else if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){
|
||||
printf("Nerozumiem\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
if(buffer[0] == 'a'){
|
||||
if(this->left->value[0] == '*'){
|
||||
printf("%s\n", this->left->value);
|
||||
@ -66,11 +72,7 @@ void search(struct tree* this){
|
||||
search(this->right);
|
||||
|
||||
}
|
||||
else if(buffer[0] != 'a' || buffer[0] != 'n' || buffer[0] != '\n'){
|
||||
printf("Nerozumiem\n");
|
||||
return;
|
||||
}
|
||||
|
||||
search(this);
|
||||
}
|
||||
|
||||
void print_tree(struct tree* tree,int offset){
|
||||
|
Loading…
Reference in New Issue
Block a user