Initializacia
This commit is contained in:
parent
d0d1dc2420
commit
2eb10876da
@ -64,18 +64,15 @@ int main() {
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
printf("Zadaj hladanu surovinu:\n");
|
printf("Zadaj hladanu surovinu:\n");
|
||||||
|
|
||||||
fgets(search, LINESIZE, stdin);
|
fgets(search, LINESIZE, stdin);
|
||||||
search[strcspn(search, "\n")] = '\0';
|
search[strcspn(search, "\n")] = '\0';
|
||||||
|
|
||||||
printf("Zadaj jedalny listok:\n");
|
printf("Zadaj jedalny listok:\n");
|
||||||
|
|
||||||
while (read_pizza(&menu[count])) {
|
while (read_pizza(&menu[count])) {
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nVysledky vyhladavania:\n");
|
printf("\nVysledky vyhladavania:\n");
|
||||||
|
|
||||||
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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user