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