Aktualizovat du5/program.c
This commit is contained in:
parent
6c8ee568c6
commit
4e4d7bfb2f
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user