funguje
This commit is contained in:
parent
84dde9a97d
commit
8a8d995f0c
@ -70,6 +70,7 @@ void run_knowledge_system(struct tree* node) {
|
|||||||
char answer[10];
|
char answer[10];
|
||||||
if (fgets(answer, sizeof(answer), stdin) == NULL) {
|
if (fgets(answer, sizeof(answer), stdin) == NULL) {
|
||||||
printf("Koniec vstupu\n");
|
printf("Koniec vstupu\n");
|
||||||
|
exit(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (answer[0] == 'a') {
|
if (answer[0] == 'a') {
|
||||||
@ -78,6 +79,7 @@ void run_knowledge_system(struct tree* node) {
|
|||||||
run_knowledge_system(node->right);
|
run_knowledge_system(node->right);
|
||||||
} else {
|
} else {
|
||||||
printf("Nerozumiem\n");
|
printf("Nerozumiem\n");
|
||||||
|
exit(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user