Initializacia
This commit is contained in:
parent
4f08259a05
commit
43922459dc
@ -87,14 +87,8 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int found_count = 0;
|
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);
|
|
||||||
found_count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (found_count > 0) {
|
if (found_count > 0) {
|
||||||
|
printf("\nVysledky vyhladavania:\n");
|
||||||
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("%s\n%.2f\n", menu[i].name, menu[i].price);
|
printf("%s\n%.2f\n", menu[i].name, menu[i].price);
|
||||||
|
Loading…
Reference in New Issue
Block a user