hz3
This commit is contained in:
parent
a808610dda
commit
89f91eaf1c
@ -55,7 +55,7 @@ void run_expert_system(Node *node) {
|
|||||||
while (node) {
|
while (node) {
|
||||||
if (!node->yes && !node->no) { // Достигнут конечный узел
|
if (!node->yes && !node->no) { // Достигнут конечный узел
|
||||||
printf("*%s\n", node->text);
|
printf("*%s\n", node->text);
|
||||||
printf("Koniec\n");
|
printf("Koniec vstupu\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ void run_expert_system(Node *node) {
|
|||||||
|
|
||||||
char answer;
|
char answer;
|
||||||
if (scanf(" %c", &answer) != 1) {
|
if (scanf(" %c", &answer) != 1) {
|
||||||
printf("Koniec\n");
|
printf("Koniec vstupu\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user