Aktualizovat du6/program.c
This commit is contained in:
parent
a60719b45d
commit
98100eaafc
@ -71,15 +71,14 @@ int count_leaves(struct tree* node) {
|
||||
|
||||
|
||||
void run_system(struct tree* node) {
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
char c;
|
||||
if (scanf(" %c", &c) != 1) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user