From 3b1118614f483e26b634d4372a30ad8896ee208e Mon Sep 17 00:00:00 2001 From: Maksym Malko Date: Fri, 27 Nov 2020 13:07:00 +0100 Subject: [PATCH] Dufam --- cv8/a.out | Bin 7137 -> 7169 bytes cv8/program.c | 16 ++++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/cv8/a.out b/cv8/a.out index b540158ad3f7ff9e8520a6435818b6f11cd08b1a..ae443f1da8b919b5d664a305cf77ca6acdbdbb20 100755 GIT binary patch delta 2061 zcmYjSdu&rx96qPL-EP;8tu5=i@z~}z9>&oP5Ef-|;uihKgo)Fb7^R5NkfAf_V33h@ zmJv!>C>%+M!MH{LAaMb70~a$1X22k#0TN;qh>(n=jU(B@H2A!J-zf!d()<0s-|Kwm z(Q|LF?5R(d%b5ce@63z1h2YO2@DvIm0or%OFe3*Bik(peqae`(->r0x<_R&n*Dyzw zl-p(}cZj#^n`%B?K9)FM)aL(o|KdyDp?z|>^th2@ppyqJmjQ>>72EgS?VlKCP7WB* zk&m{(TnxC2XcJ-&(JsV3BFd9Q2>XbLy2Hd=A&wADA^M3<>dXEQ)_q;c~Wy~4%d=L$y=%^K3q>nyH4OF!j0tXH0NZ(FOjd&oRbQ# zA#Vh)yZcuBc5Gs5&8x43r{ai2mCX@c@imfaxU8}JIooXa#zv4Yde20DZ;juHO$Nq| zDh92~7srx)kp*IetY%nkaxCuFfvXG*FJM))VFW?Z;nSsNstco@chDy<-W%JP9O%Mf zKB7X*ggnqP;j{vrnoaW9u9b>;y(*tLuYrlB7YhiAju_8p%XIX7JKu!4K8DIkl^Pg{QBVE5purFl@YeBDQnF>Ub!x zEz>~DTbHr5yokDzSh$gbnx|qrr>qX{`2f}5{aepd4=#0!8MX*@6rx$8 zaRUoEliyaTkXhoNi@M{i8+felq&jQHgV+B;mQ3QP=%@AdI_tHysYA%?8B6l+~g~ z66k`y6Tn4Suv@@wK;B5)>vG_3^>f}zDU`=mS#cO@t|Lc0Kg;a3t+oBvT3tcesCr#x74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iA3YLaUsA`AO_S#KKp2LM)k6xbHMupcs3g6>FMj% zMDrwbw{;YuN}|bN{|)RIf`?=da$@PRFXIZkDoPf)LCm+o5vB`HJtVd5gRX0Y^h#wXi$X!vr8U!uTz%G`|kO&A#YRR za%1;~ZP8#`v^}~Z`hHX%&YNA=d(X1CtRd7$0)GY$05cGM6}S{j&-h-ZZomUldzN@TF3VA$!nuF4nn z3Kugj$v5>Xx5;ya>*lEJD)h;e?r~+W!XtWBP6i8`$&ywue-wjK*ya^vqV=sJ~U2Cqd zNa>Z0zUP$l@@;&-l85m9X7IQ#U+JV`Oi4IJAwf_#(aHNA4^}oG1=pWAu{RXsA1zr$8t-c1nl>A^g=%2^A226P#-dK&=w-50E=U zPQM!mZc3LT{2~B8Ci_cjm2P>VB;fk(V^zB)@07e$$(3hLk(jW~B5G=Ry;$B+@NT)P zG@w+-ou#$j1){ + puts("Expert z bufetu to vie."); + puts("Chybna databaza"); + exit(0); + } + + puts("Expert z bufetu to vie."); printf("Pozna %d druhov ovocia a zeleniny.\n",type_count(root)); puts("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost."); @@ -90,10 +98,6 @@ void system_execute(struct tree* root){ system_execute(root->left); }else if(resp[0]=='n'){ system_execute(root->right); - }else if(strlen(resp)>1){ - puts("Expert z bufetu to vie."); - puts("Chybna databaza"); - exit(0); }else{ puts("Nerozumiem"); exit(0);