funguje
This commit is contained in:
parent
84dde9a97d
commit
8a8d995f0c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user