Initializacia

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

View File

@ -55,10 +55,15 @@ void run_tree(struct tree* tree) {
printf("Koniec vstupu\n"); printf("Koniec vstupu\n");
return; return;
}else if (response != 'a' && response != 'n') { }else if (response != 'a' && response != 'n') {
if (feof(stdin)) {
printf("Chybna databaza\n");
} else {
printf("Nerozumiem\n"); printf("Nerozumiem\n");
}
return; return;
} }
if (response == 'a') { if (response == 'a') {
run_tree(tree->left); run_tree(tree->left);
} else { } else {