Aktualizovat du5/program.c

This commit is contained in:
Tomáš Vlček 2026-04-15 09:47:32 +00:00
parent 6c8ee568c6
commit 4e4d7bfb2f

View File

@ -63,7 +63,7 @@ void goThroughTheTree(int rootIndex)
{ {
//pomocne premeny //pomocne premeny
int current = rootIndex; int current = rootIndex;
char input; char input = '0'; // '0' = ako keby nic / NULL
while (current != -1) while (current != -1)
{ {
@ -87,7 +87,7 @@ void goThroughTheTree(int rootIndex)
{ {
current = tree[current].no; current = tree[current].no;
} }
else else if (input == '0')
{ {
printf("Nerozumiem\n"); printf("Nerozumiem\n");
return; return;