usaa18cv3/main.c

14 lines
296 B
C
Raw Normal View History

2018-11-19 22:49:56 +00:00
#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;
}