From 9975be519939045f7b1b0d2765b87398320305a7 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Oct 2020 22:26:40 +0200 Subject: [PATCH] aaaa --- cv1/program.c | 21 ++++++++++++++------- cv1/program.exe | Bin 68671 -> 69901 bytes 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 074ef37..28c269f 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -10,14 +10,14 @@ struct pizza { float prize; char name[LINESIZE]; }; - +int search_string(const char* heap, const char* needle); int read_pizza(struct pizza* item); char hacker_script(char c); int main(){ struct pizza jedalny_listok[POCET_JEDAL]; memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL); - + int counter; char line[LINE_SIZE]; memset(line,0,LINE_SIZE); printf("Zadaj hladanu surovinu:\n"); @@ -25,14 +25,21 @@ int main(){ if(r != NULL && line[1] != 0){ printf("Zadaj jedalny listok\n"); struct pizza item; - int counter = 1; + counter = 1; while(read_pizza(&item)){ - strcpy(jedalny_listok[counter-1].name, item.name); - jedalny_listok[counter-1].prize=item.prize; - counter += 1; - } + strcpy(jedalny_listok[counter-1].name, item.name); + jedalny_listok[counter-1].prize=item.prize; + counter += 1; } } + for(int i=0;iY9cm#uBB8ZA?oV%})&~D$!MGf~m1qO}6jsh2?0U_IZB)^yoKp=AHMu z%y+&sXV2mHyA)OX6xCY?-W$0#g?+`?Oo_2}){DDyNySz(#@?*i7cB+cuelH^RXWpQ zr?I5t{>o`r7<*JRWDw0b>*5x_5PQLuF zl;<>*pP`*jzm|TXr}2uIK@;?hmE7mWfBH0DtKhKrsX{Bvnuh7ARuLp|J-x4(D1B5! zKPtv}ZY{D9Fwac&-ZV}b6)*`<$)C(O&;DdK_pqT5l#n8-QTp(`^oDYH{O<*^Q(-#k z%2QnVrWcW~^N?u+ zK`0xnHGLq6PqkhF5wX86G%Dh}gw@tUn?W&A5f>q_V{$A>U~d-ECg(|h4VWrvi9K0e z(m5E*7g;d-9;1uS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