Initializacia
This commit is contained in:
parent
e94c43f798
commit
57556018ea
@ -85,14 +85,14 @@ void count_items(struct tree* tree, int* count) {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
struct tree* root = load_tree();
|
struct tree* root = load_tree();
|
||||||
|
printf("Expert z bufetu to vie.\n");
|
||||||
if (!root) {
|
if (!root) {
|
||||||
printf("Chyba: Nepodarilo sa nacitat bazu pravidiel.\n");
|
printf("Chybna databaza\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
count_items(root, &count);
|
count_items(root, &count);
|
||||||
printf("Expert z bufetu to vie.\n");
|
|
||||||
printf("Pozna %d druhov ovocia a zeleniny.\n", count);
|
printf("Pozna %d druhov ovocia a zeleniny.\n", count);
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user