Update 'cv8/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-11-24 20:28:30 +00:00
parent fab60f2ad0
commit 526b52b477

View File

@ -96,7 +96,7 @@ void knowledge_system(struct tree* node) {
return; return;
} }
printf("%s", node->value); printf("%s", node->v);
if (node->left == NULL && node->right == NULL) { if (node->left == NULL && node->right == NULL) {
printf("Koniec\n"); printf("Koniec\n");
return; return;
@ -106,7 +106,7 @@ void knowledge_system(struct tree* node) {
char response; char response;
do { do {
printf("%s (a/n) ?\n", node->value); printf("%s (a/n) ?\n", node->v);
scanf(" %c", &response); scanf(" %c", &response);
if (response != 'a' && response != 'n') { if (response != 'a' && response != 'n') {
printf("Nespravny vstup\n"); printf("Nespravny vstup\n");