12dsddd
This commit is contained in:
parent
594b538133
commit
70522619e3
@ -14,10 +14,8 @@ int count_items = 0;
|
||||
|
||||
struct tree* read_tree() {
|
||||
char buffer[SIZE];
|
||||
|
||||
if (!fgets(buffer, SIZE, stdin))
|
||||
return NULL;
|
||||
|
||||
if (buffer[0] == '\n')
|
||||
return NULL;
|
||||
|
||||
@ -94,9 +92,9 @@ int main() {
|
||||
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Pozna %d druhov ovocia a zeleniny.\n", count_items);
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
|
||||
run(root);
|
||||
|
||||
destroy_tree(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user