du6.8
This commit is contained in:
parent
27d48c7204
commit
d776b9de50
@ -85,7 +85,8 @@ int main() {
|
||||
Node *root = readTree(); // načítame strom zo vstupu
|
||||
printf("Expert z bufetu to vie.\n"); // vždy vypíšeme tento riadok
|
||||
|
||||
if (!root) { // ak strom je prázdny alebo chybne načítaný
|
||||
if (readTree(NULL)) {
|
||||
printf("Expert z bufetu to vie.\n"); // ak strom je prázdny alebo chybne načítaný
|
||||
printf("Chybna databaza\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user