Update 'cv8/program.c'
This commit is contained in:
parent
0f74ea9a27
commit
fbf9870e24
@ -69,7 +69,6 @@ void print_dot(struct tree* node) {
|
|||||||
}
|
}
|
||||||
print_dot(node->right);
|
print_dot(node->right);
|
||||||
}
|
}
|
||||||
//printf("}\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int count_leaves(struct tree* node) {
|
int count_leaves(struct tree* node) {
|
||||||
@ -100,7 +99,6 @@ void knowledge_system(struct tree* node) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//printf("%s", node->v);
|
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||||
printf("%s", node->v);
|
printf("%s", node->v);
|
||||||
|
|
||||||
@ -108,7 +106,7 @@ void knowledge_system(struct tree* node) {
|
|||||||
do {
|
do {
|
||||||
scanf(" %c", &response);
|
scanf(" %c", &response);
|
||||||
if (response != 'a' && response != 'n') {
|
if (response != 'a' && response != 'n') {
|
||||||
printf("Nespravny vstup\n");
|
printf("Nerozumiem\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} while (response != 'a' && response != 'n');
|
} while (response != 'a' && response != 'n');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user