This commit is contained in:
Valér Jakubčo 2021-11-26 03:26:27 +01:00
parent f0a59e584d
commit 04596bd224

View File

@ -63,6 +63,10 @@ void ask(struct node* tree){
return; return;
} }
r = fgets(buff, SIZE, stdin); r = fgets(buff, SIZE, stdin);
if(r == NULL){
puts("Koniec vstupu");
return;
}
if(r[0] == 'a' && tree->left != NULL){ if(r[0] == 'a' && tree->left != NULL){
tree = tree->left; tree = tree->left;
ask(tree); ask(tree);