Initializacia
This commit is contained in:
parent
192ea219b4
commit
3f0bc73577
@ -96,14 +96,6 @@ int main() {
|
||||
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
|
||||
// Check if the input is empty after loading the tree
|
||||
char buffer[SIZE];
|
||||
if (fgets(buffer, SIZE, stdin) == NULL || buffer[0] == '\n') {
|
||||
printf("Chybna databaza\n");
|
||||
destroy_tree(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int count = 0;
|
||||
count_items(root, &count);
|
||||
printf("Pozna %d druhov ovocia a zeleniny.\n", count);
|
||||
|
Loading…
Reference in New Issue
Block a user