From ea244bb6839fcedeb81e91d35b5bebf6348ab2ad Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 13 Oct 2020 17:02:34 +0200 Subject: [PATCH] abcd --- cv2/program.c | 58 ++++++++++++++++++++++-------------------------- cv2/program.exe | Bin 69407 -> 68829 bytes 2 files changed, 26 insertions(+), 32 deletions(-) diff --git a/cv2/program.c b/cv2/program.c index d1ae915..688ac0f 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -19,38 +19,32 @@ int main(){ struct pizza jedalny_listok[POCET_JEDAL]; memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL); int counter=0; - char line[LINE_SIZE]; - memset(line,0,LINE_SIZE); - //printf("Zadaj hladanu surovinu:\n"); - char* r = fgets(line,LINE_SIZE,stdin); - trim(line); - if(r != NULL && line[1] != 0){ - //printf("Zadaj jedalny listok:\n"); - struct pizza item; - while(read_pizza(&item)){ - strcpy(jedalny_listok[counter].name, item.name); - jedalny_listok[counter].prize=item.prize; - //printf("%s",jedalny_listok[counter].name); - //printf("%s",item.name); - counter += 1; + //char line[LINE_SIZE]; + //memset(line,0,LINE_SIZE); + + struct pizza item; + while(read_pizza(&item)){ + strcpy(jedalny_listok[counter].name, item.name); + jedalny_listok[counter].prize=item.prize; + counter += 1; //printf("%d\n",counter); - if (counter>=POCET_JEDAL) - { - break; - } + if (counter>=POCET_JEDAL) + { + break; } } - //printf("%d\n",counter); + for(int i=0;iEogmf6lXwn$cfPfSc#u%uV8!v}FMba{Aq89%nZG(JnXZ z%sJjIkVMzMwwv;ipXVWVaRw|j-|9tx=&g`2c=}GmO7;bQ|(~jHXN}y){sGdT-rr>agHU=*L_B2dMs2~AOC9w-9gw;H1KrwOn~s~bmNRxH%VyS8O^r4L@-XSx=y*6f6JPIlAk`mM zJx6&4A)c8V|1V;rwmW(xFT$<~hJ7p$mV;neE-yeV#0g-3oKP5cVWCZjl4YR`-BZgG zP)5I03Ya|TPowr#`Y`IhsLl8j`J*!WqcOpJu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