usaa18cv3/main.c
2018-11-19 23:49:56 +01:00

14 lines
296 B
C

#include "pizza3.h"
#include <stdio.h>
int main(){
struct pizza list[LIST_SIZE];
int size = read_pizza_list(stdin,list,LIST_SIZE);
int res = search_pizza_list(list,size,"bryndza");
printf("Bryndzu obsahuje pizza %s za %f EUR",list[res].name,list[res].prize);
return 0;
}