edge case
This commit is contained in:
parent
0c4fff26b0
commit
b430a3f712
@ -73,11 +73,15 @@ int main() {
|
||||
|
||||
struct uzol* strom = nacitaj_data();
|
||||
|
||||
if (!strom) return 0;
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
|
||||
if (!strom) {
|
||||
printf("Chybna databaza\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int listy = zrataj_produkty(strom);
|
||||
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Pozna %d druhov ovocia a zeleniny.\n", listy);
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user