Initializacia
This commit is contained in:
parent
efd3e34cb5
commit
1746f22b4e
@ -73,7 +73,7 @@ int main() {
|
||||
}
|
||||
search[strcspn(search, "\n")] = '\0';
|
||||
|
||||
printf("Zadaj jedalny listok:\n");
|
||||
printf("Zadaj jedalny listok:");
|
||||
while (count < MENU_SIZE && read_pizza(&menu[count])) {
|
||||
count++;
|
||||
}
|
||||
@ -81,7 +81,7 @@ int main() {
|
||||
int found_count = 0;
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (contains_normalized(menu[i].name, search)) {
|
||||
printf("%s\n%.2f\n", menu[i].name, menu[i].price);
|
||||
printf("\n%s\n%.2f\n", menu[i].name, menu[i].price);
|
||||
found_count++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user