diff --git a/cv1/program.c b/cv1/program.c index 5e620a8..466fc7b 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -5,7 +5,7 @@ #define LINESIZE 100 #define LINE_SIZE 100 -#define POCET_JEDAL 100 +#define POCET_JEDAL 3 struct pizza { float prize; char name[LINESIZE]; @@ -33,6 +33,10 @@ int main(){ //printf("%s",jedalny_listok[counter].name); //printf("%s",item.name); counter += 1; + if (counter>=POCET_JEDAL) + { + break; + } } } //printf("%d\n",counter); diff --git a/cv1/program.exe b/cv1/program.exe index 093dfc1..90d5641 100644 Binary files a/cv1/program.exe and b/cv1/program.exe differ