This commit is contained in:
Deinerovych 2024-11-06 10:09:19 +01:00
parent 7bd6f0c84f
commit e7574f64e9

View File

@ -48,9 +48,10 @@ int count_products(Node *node) {
}
void run_expert_system(Node *node) {
printf("Expert z bufetu to vie.\n");
while (node) {
if (!node->yes && !node->no) {
printf("Expert z bufetu to vie.\n");
printf("*%s\n", node->text);
printf("Koniec\n");
return;
@ -84,7 +85,7 @@ void create_default_knowledge_base() {
perror("Failed to create the knowledge base file");
exit(1);
}
fprintf(file, "Je to ovocie alebo zelenina?\n");
fprintf(file, "Je to ovocie alebo zelenina\n");
fprintf(file, "*Jablko\n");
fprintf(file, "*Mrkva\n");
fclose(file);