Initializacia
This commit is contained in:
parent
ef2e448620
commit
3d40f833d6
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user