From f5e678419bb11514d21427994e7d1d4d0f08ac30 Mon Sep 17 00:00:00 2001 From: Peter Ferko Date: Tue, 13 Nov 2018 23:07:41 +0000 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20'main.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.c diff --git a/main.c b/main.c new file mode 100644 index 0000000..f52c108 --- /dev/null +++ b/main.c @@ -0,0 +1,15 @@ +#include "pizza3.h" +#include + +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;}