Initializacia

This commit is contained in:
Kozar 2024-10-02 17:38:24 +00:00
parent 43922459dc
commit b944c638ad

View File

@ -87,13 +87,13 @@ int main() {
} }
int found_count = 0; int found_count = 0;
if (found_count > 0) { for (int i = 0; i < count; i++) {
printf("\nVysledky vyhladavania:\n"); if (contains_normalized(menu[i].name, search)) {
for (int i = 0; i < count; i++) { if (found_count == 0) {
if (contains_normalized(menu[i].name, search)) { printf("\nVysledky vyhladavania:\n");
printf("%s\n%.2f\n", menu[i].name, menu[i].price);
found_count++;
} }
printf("%s\n%.2f\n", menu[i].name, menu[i].price);
found_count++;
} }
} }