This commit is contained in:
Your Name 2025-11-20 15:29:41 +01:00
parent 84dde9a97d
commit 8a8d995f0c

View File

@ -70,6 +70,7 @@ void run_knowledge_system(struct tree* node) {
char answer[10];
if (fgets(answer, sizeof(answer), stdin) == NULL) {
printf("Koniec vstupu\n");
exit(0);
return;
}
if (answer[0] == 'a') {
@ -78,6 +79,7 @@ void run_knowledge_system(struct tree* node) {
run_knowledge_system(node->right);
} else {
printf("Nerozumiem\n");
exit(0);
return;
}
}