Přidat 'main.c'

This commit is contained in:
Peter Ferko 2018-11-13 23:07:41 +00:00
parent 491fd3e14a
commit f5e678419b

15
main.c Normal file
View File

@ -0,0 +1,15 @@
#include "pizza3.h"
#include <stdio.h>
int main(int argc, char** argv){
printf("Ja som nazov programu: $s\n",argv[0]);
printf("Ja som argument 1: $s\n",argv[1]);
printf("Ja som argument 2: $s\n",argv[2]);
int res = search_pizza_list(list,size,"slanina");
printf("Slaninu obsahuje pizza %s za %f EUR",list[res].name,list[res].prize);
return 0;}