Update cv7/program.c
This commit is contained in:
parent
310236be4b
commit
282c3cbf6e
@ -99,8 +99,6 @@ void ask_question(Node *node) {
|
|||||||
int main() {
|
int main() {
|
||||||
// General system information only once
|
// General system information only once
|
||||||
printf("Expert z bufetu to vie.\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
printf("Pozna 2 druhov ovocia a zeleniny.\n");
|
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
|
||||||
|
|
||||||
Node *root = parse_rules();
|
Node *root = parse_rules();
|
||||||
if (!root) {
|
if (!root) {
|
||||||
@ -112,6 +110,7 @@ int main() {
|
|||||||
printf("Pozna %d druhov ovocia a zeleniny.\n", answer_count);
|
printf("Pozna %d druhov ovocia a zeleniny.\n", answer_count);
|
||||||
|
|
||||||
// Ask the first question
|
// Ask the first question
|
||||||
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||||
ask_question(root);
|
ask_question(root);
|
||||||
free_tree(root);
|
free_tree(root);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user