update program.c

This commit is contained in:
Ivan Leichenko 2024-10-01 13:35:43 +02:00
parent 359fcbc229
commit 52075c4d57

View File

@ -100,7 +100,7 @@ int main()
int* items = search(find,itemc,menu,&sitemc);
for (int i = 0; i < sitemc; i++)
{
printf("%s\n%.2f\n", menu[i].name, menu[i].price);
printf("%s\n%.2f\n", menu[items[i]].name, menu[items[i]].price);
}
printf("Nacitanych %d poloziek.\n", itemc);
for (int i = 0; i < itemc; i++)