Update cv7/program.c
This commit is contained in:
parent
282c3cbf6e
commit
a2fc961506
@ -76,8 +76,18 @@ void ask_question(Node *node) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s\n", node->content);
|
// Print the current question
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
printf("%s?\n", node->content);
|
||||||
|
if (node->yes) {
|
||||||
|
printf("* %s\n", node->yes->content);
|
||||||
|
}
|
||||||
|
if (node->no) {
|
||||||
|
printf("* %s\n", node->no->content);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prompt for input
|
||||||
|
printf("\n");
|
||||||
|
printf("n\n");
|
||||||
|
|
||||||
char response;
|
char response;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user