21 lines
399 B
C
21 lines
399 B
C
#include "pizza3.h"
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv){
|
|
|
|
struct pizza list[LIST_SIZE];
|
|
FILE * file;
|
|
|
|
file=fopen("zoznam.txt","r");
|
|
|
|
int size= read_pizza_list(file, list, LIST_SIZE);
|
|
print_pizza_list(list,size);
|
|
|
|
|
|
|
|
int res = search_pizza_list(list,size,"fazula");
|
|
printf("Fazulu obsahuje pizza %s za %f EUR",list[res].name,list[res].prize);
|
|
|
|
fclose(file);
|
|
return 0;}
|