du6.3
This commit is contained in:
parent
69510a16f2
commit
17a0dc06c6
@ -55,7 +55,7 @@ void run(Node *x) {
|
|||||||
printf("%s\n", x->t); // vypíšeme otázku
|
printf("%s\n", x->t); // vypíšeme otázku
|
||||||
|
|
||||||
if (!fgets(s, MAX, stdin)) { // načítame odpoveď od používateľa
|
if (!fgets(s, MAX, stdin)) { // načítame odpoveď od používateľa
|
||||||
printf("Odpovedajte 'a' alebo 'n'\n"); // ak nič, upozorníme
|
printf("Nerozumiem\n"); // ak nič, upozorníme
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ void run(Node *x) {
|
|||||||
} else if (c == 'n') {
|
} else if (c == 'n') {
|
||||||
run(x->n); // ak nie, pokračujeme v pravom podstrome
|
run(x->n); // ak nie, pokračujeme v pravom podstrome
|
||||||
} else {
|
} else {
|
||||||
printf("Odpovedajte 'a' alebo 'n'\n"); // iná odpoveď nie je platná
|
printf("Nerozumiem\n"); // iná odpoveď nie je platná
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user