Initializacia

This commit is contained in:
Kozar 2024-10-02 19:06:27 +00:00
parent 1746f22b4e
commit 943f74a75e

View File

@ -81,14 +81,11 @@ int main() {
int found_count = 0; int found_count = 0;
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
if (contains_normalized(menu[i].name, search)) { if (contains_normalized(menu[i].name, search)) {
printf("\n%s\n%.2f\n", menu[i].name, menu[i].price); printf("%s\n%.2f\n", menu[i].name, menu[i].price);
found_count++; found_count++;
} }
} }
if (found_count == 0) {
printf("\n");
}
printf("Nacitanych %d poloziek.\n", count); printf("Nacitanych %d poloziek.\n", count);
return 0; return 0;