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