Initializacia
This commit is contained in:
parent
ef2e448620
commit
3d40f833d6
@ -54,11 +54,16 @@ void run_tree(struct tree* tree) {
|
|||||||
if (scanf(" %c", &response) != 1) {
|
if (scanf(" %c", &response) != 1) {
|
||||||
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