From 9b22d429094228c75c7f5dd5835dc281f6537fd7 Mon Sep 17 00:00:00 2001 From: Yevhen Kozirovskyi Date: Fri, 15 Nov 2024 03:52:46 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20cv7/program.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv7/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index beb9db9..bc74739 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -31,7 +31,6 @@ Node* load_knowledge_base() { if (line[0] == '\n') return NULL; - // Создание узла Node *node = create_node(line); if (line[0] != '*') { @@ -50,13 +49,14 @@ int count_items(Node *node) { void ask_question(Node *node) { if (node == NULL) return; + printf("%s", node->text); + if (node->text[0] == '*') { printf("Expert z bufetu to vie.\n"); return; } printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); - printf("%s", node->text); char answer; if (scanf(" %c", &answer) != 1) {