usaa18cv3/main.c
2018-11-14 02:09:52 +01:00

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;}