This commit is contained in:
Džubara 2024-11-11 14:46:40 +01:00
parent 64aaf27501
commit c3b0608315

View File

@ -51,7 +51,7 @@ void free_tree(Node *node) {
void run_system(Node *node) {
while (node) {
if (node->yes == NULL && node->no == NULL) {
printf("Expert z bufetu to vie.\n");
printf("* %s\n", node->text);
printf("Koniec\n");
break;
@ -74,7 +74,7 @@ void run_system(Node *node) {
int main() {
int item_count = 0;
printf("Načítajte bázu znalostí:\n");
printf("Expert z bufetu to vie.\n");
Node *root = load_tree(&item_count);
if (root == NULL) {