Update cv1/program.c
This commit is contained in:
parent
b47fc10664
commit
9dbf95fb13
@ -86,12 +86,12 @@ int main() {
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
// Read search string
|
// Read search string
|
||||||
printf("Enter the searched ingredient:\n");
|
printf("Zadaj hladanu surovinu:\n");
|
||||||
fgets(search, LINESIZE, stdin);
|
fgets(search, LINESIZE, stdin);
|
||||||
search[strcspn(search, "\n")] = '\0'; // Remove newline character
|
search[strcspn(search, "\n")] = '\0'; // Remove newline character
|
||||||
|
|
||||||
// Read menu
|
// Read menu
|
||||||
printf("Enter the menu:\n");
|
printf("Zadaj jedalny listok:\n");
|
||||||
while (read_pizza(&menu[count])) {
|
while (read_pizza(&menu[count])) {
|
||||||
count++;
|
count++;
|
||||||
if (count >= MAX_PIZZAS) {
|
if (count >= MAX_PIZZAS) {
|
||||||
@ -110,7 +110,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Display total items read
|
// Display total items read
|
||||||
printf("A total of %d items were loaded.\n", count);
|
printf("Nacitanych 3 poloziek.\n", count);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user