Přidat 'main.c'
This commit is contained in:
parent
491fd3e14a
commit
f5e678419b
15
main.c
Normal file
15
main.c
Normal 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;}
|
Loading…
Reference in New Issue
Block a user