Initializacia

This commit is contained in:
Kozar 2024-11-12 19:10:28 +00:00
parent 27c63a26ef
commit fe7326837f

View File

@ -38,12 +38,13 @@ void run_tree(struct tree* tree) {
return; return;
} }
printf("%s\n", tree->value);
if (tree->value[0] == '*') { if (tree->value[0] == '*') {
printf("*%s\nKoniec\n", tree->value + 1); printf("Koniec\n");
return; return;
} }
printf("%s\n", tree->value);
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
char response; char response;