Initializacia

This commit is contained in:
Kozar 2024-11-10 16:23:37 +00:00
parent ef2e448620
commit 3d40f833d6

View File

@ -54,11 +54,16 @@ void run_tree(struct tree* tree) {
if (scanf(" %c", &response) != 1) {
printf("Koniec vstupu\n");
return;
} else if (response != 'a' && response != 'n'){
}else if (response != 'a' && response != 'n') {
if (feof(stdin)) {
printf("Chybna databaza\n");
} else {
printf("Nerozumiem\n");
}
return;
}
if (response == 'a') {
run_tree(tree->left);
} else {