Aktualizovat du5/program.c
This commit is contained in:
parent
e58dd76745
commit
348a49378b
@ -103,7 +103,6 @@ void goThroughTheTree(int rootIndex)
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
char buffer[SIZE];
|
char buffer[SIZE];
|
||||||
bool isErr = false; //pomocna error premena
|
|
||||||
|
|
||||||
//null-terminovanie
|
//null-terminovanie
|
||||||
buffer[0] = '\0';
|
buffer[0] = '\0';
|
||||||
@ -119,7 +118,6 @@ int main()
|
|||||||
//ALEBO ak sa nenacital riadok vobec (buffer je uplne prazdny, (resp prvy prvok je null terminator))
|
//ALEBO ak sa nenacital riadok vobec (buffer je uplne prazdny, (resp prvy prvok je null terminator))
|
||||||
if (buffer[0] == '\0')
|
if (buffer[0] == '\0')
|
||||||
{
|
{
|
||||||
isErr = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//nahradi NewLine symbol za null terminator (Newline sa prida naspat potom na konci programu)
|
//nahradi NewLine symbol za null terminator (Newline sa prida naspat potom na konci programu)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user