Aktualizovat du6/program.c
This commit is contained in:
parent
1c72fb3b11
commit
bf691cbf9a
@ -72,14 +72,14 @@ int count_leaves(struct tree* node) {
|
||||
|
||||
void run_system(struct tree* node) {
|
||||
while (node) {
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
printf("%s\n", node->value); // виводимо питання або відповідь
|
||||
|
||||
|
||||
if (!node->left && !node->right) {
|
||||
printf("Koniec\n");
|
||||
return;
|
||||
}
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
|
||||
|
||||
char c;
|
||||
if (scanf(" %c", &c) != 1) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user