From 13efda128eea76cdeddcd4163121f91fca122d64 Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 10 Nov 2024 16:08:07 +0100 Subject: [PATCH] Initializacia --- cv7/main | Bin 0 -> 16584 bytes cv7/program.c | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 cv7/main diff --git a/cv7/main b/cv7/main new file mode 100755 index 0000000000000000000000000000000000000000..5baab3b7b98e8cc075c3df6f425ab7bbfd738284 GIT binary patch literal 16584 zcmeHOdu$xV8K1LbVjzi~kbntovV{bNhc9+s4S|%4olDkj9wxEXq$S;~eQW!~JfEO)9&Giz%fAwW!G-6^K&FR6u#C;3#bZ6>Sn#rKu`aDM~6kNvScka@!==-?ua0 zdT;SjsqG(CbtCP4^ZmZZ%ziVoH?uqQ|jY5N&F^6!+_sO+B895=#G@0PG&%H`b! zJJm!=SE0)HhEvr^6jYXQyU(>11%3Q!v#_ z!$o~+foNjn3|M3F&Yrr*J{`7MInjZvD@xFcvd?T>gV!o&hNg8PYr9GZZsA?HfbxK9*jV0)z0sKyL^2C>b zCq(wz0OU48!yR&NG&+->R1YZZg-5@IZd@w*6rY(Ny`20$Cc`QCxyf-2sYdQm&qc<$ z@ykQfka6Zu-YIb!GdxBKIpx7={Baub;4>Hm9rNJ05jRbEa2lVSxL?q7g2pGOL8U(( z0QD_SPk3+{K`A-l!JYpxW$=s#m(K$!81mp$2B()jILC-&!yX(B;HEb{_!TZH#BmRP zr3Wu&ixDVBpcsK-1d0(TM&N%x0v}W?_`BYFzFg0i{dTDk`u<_NBzIiz{b~7Or}DX# zUjRIwTl__kiiLvoJ4iA<`iERDH|X#*ff*k?;qo+b86Q35@-*QZAAR2CX`(egdeG%* zLNh-4sLRttW_Hdg0U${EI=V?Iiz0AOC$H|CEn^ z+{X|2`29Y9pO4RY`Px4<^q=^W-v6%NdwQ&~DO@{T`<6bi_GyGAH*Y&MKWqzDEPMzz zg$5W{+YLk?C`%E!ZNi?1rddUKG|lC?Qxyw)Nbj(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q@$_kw(tJq-?~|i73?-KT z*)&kkr^%U%y6M(%h0s z*cq+1Hn<{KQ(c>J*xCn{EeqDHxJkhu?~(fRH1U4UuSM+^faGBnSWPKh1v-^JwQGr} z6ocwKf>IZn!iRnMa)tA_V*LhW0vHulA&KyKqkYK%akV>6q*RFek)d+kajFD;j{ZD% zUn=WAjm%W_f8NobBMxX%lgCk^`#tLD&lOG1+XHFCzf<}DwWEKH@b{f2aU{*ug8s-Rc45ydQzH;|2837QinmKPhTxBP!s>(*^Dwr<$4J=|n8t*hGzw(Re8cVB6IUNcGPo7#tj3fFF!Ils>l<54)1=4b;E#88c61o9K$KcY1M#v>nd z2ATZl8hQS$#EvfKiQa&V=DciQ==>h(QsQ~8i?71m&(0USI!gtE-tUVrtFv= zASF-Yzh$ORL*}&~RsyE1$1a#>I^?rIt^`a6*-%loWBQ8Ep65MGANO^5wqv(%`0RNe z%9PjdtnYItex~fX{e`A96@6B*Ot}4+{{=D>Kem5PlM<$POV<7Mm;XCRy!PdvlB!G_ zN$5%b^3Omv3m31K`Mm_6yY=fc&y?0B6&`zjZ_!f?5Q+69H_0=85d!MFTt2Ud_#E|^ zsy~fCN^HmN_yb_1!uGsA>RL+LIFBuf`^)xBFN3kyUWAltjig)-J77EJXTX>+E}!SW zl?Ckm{${K4l{&i>Y=4W3$PCq$l9zJdkrMeEQV!o#9p;mOY0A#^=jSi2>$&dIQvQ~& bl=NMnb1s*4X_+yV{n<}Tjrl$UA1nR|NU!uZ literal 0 HcmV?d00001 diff --git a/cv7/program.c b/cv7/program.c index b3e0900..cbda220 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -63,3 +63,21 @@ void count_items(struct tree* tree, int* count){ } } +int main() { + printf("Nacitanie baze pravidiel:\n"); + struct tree* root = load_tree(); + + if (!root) { + printf("Chyba: Nepodarilo sa nacitat bazu pravidiel.\n"); + return 1; + } + + int count = 0; + count_items(root, &count); + printf("Pozna %d druhov ovocia a zeleniny.\n", count); + printf("Strom pre ladenie:\n"); + print_tree(root, 0); + + destroy_tree(root); + return 0; +}