From 0833dd70edaa03de99e5262bc76acb6d0394f005 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Oct 2020 21:54:55 +0200 Subject: [PATCH] aa --- cv1/program.c | 10 ++++++---- cv1/program.exe | Bin 68793 -> 68671 bytes 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 9cdabe3..074ef37 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -5,7 +5,7 @@ #define LINESIZE 100 #define LINE_SIZE 100 - +#define POCET_JEDAL 100 struct pizza { float prize; char name[LINESIZE]; @@ -14,20 +14,22 @@ struct pizza { int read_pizza(struct pizza* item); char hacker_script(char c); int main(){ - int POCET_JEDAL=0; + struct pizza jedalny_listok[POCET_JEDAL]; memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL); char line[LINE_SIZE]; memset(line,0,LINE_SIZE); + printf("Zadaj hladanu surovinu:\n"); char* r = fgets(line,LINE_SIZE,stdin); if(r != NULL && line[1] != 0){ + printf("Zadaj jedalny listok\n"); struct pizza item; int counter = 1; while(read_pizza(&item)){ + strcpy(jedalny_listok[counter-1].name, item.name); + jedalny_listok[counter-1].prize=item.prize; counter += 1; - printf("%s",item.name); - printf("%.2f\n",item.prize); } } } diff --git a/cv1/program.exe b/cv1/program.exe index 1bdbff6c377b6ca81f842dd5bc841099ec92d8e6..1e2b96c48c93180c504d11ab13ee2b84156d36cb 100644 GIT binary patch delta 7540 zcmc&&3s_avwqA3wHzE&tBLV`lHYlhF@`%c0n;>dsl$0VSpn#IRl#Lp;eVa&PaKmRf2 zm}8AS=GyDfHq}R4Rr>YAd&U;03SSCBLTzn=Rm5wo_H3}2VNLH@JwRIKsg64*2tBo9 zylHQT4a=alY&C13U)bX;!!S$iVd9?)DOMHZwW3fE%6eJRr=P@WR7?>m);L!&#U+JSUp5eUF$IgKVzjtzls_9PLX!i=UJw8!2J&a==N-U9M$5zlf>v)fk zF;&(&<%qtl%LiNM5s=-R>1%7hl4e*p?!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