Aktualizovat du5/program.c
This commit is contained in:
parent
6c8ee568c6
commit
4e4d7bfb2f
@ -63,7 +63,7 @@ void goThroughTheTree(int rootIndex)
|
||||
{
|
||||
//pomocne premeny
|
||||
int current = rootIndex;
|
||||
char input;
|
||||
char input = '0'; // '0' = ako keby nic / NULL
|
||||
|
||||
while (current != -1)
|
||||
{
|
||||
@ -87,7 +87,7 @@ void goThroughTheTree(int rootIndex)
|
||||
{
|
||||
current = tree[current].no;
|
||||
}
|
||||
else
|
||||
else if (input == '0')
|
||||
{
|
||||
printf("Nerozumiem\n");
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user