From 78d996f60875e8ff5b610d5062f03b842bfbfcaa Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Sat, 15 Apr 2023 11:30:03 +0200 Subject: [PATCH] .. --- du6/program | Bin 19488 -> 19888 bytes du6/program.c | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/du6/program b/du6/program index 2713a09cbb78fc7e52ae7339add1bdcb8c2ed2a0..649581049e7321af0791bfa132cf0f5cfc504d92 100755 GIT binary patch delta 3565 zcmZWseNa@_6~FiGzU94Tm;C^;EYPsTsG#F6iyyei0t>9XMPo2Z1F^bn6v9SDL@<(S zSR^KH$YvH#>u6$IoPN=1|G+YuXr@-8)nqbbW!kan$28j76cZdV8fznFd+vMtG&OhT zy>oxR^Ks9;@7(*|8#+Ko-lFj=>xh}itx^$Ws%CJ`&-CUL1)5U^|Kb#{X%ut~EYu|q zQ3VY_0MQOkL3^Q(zM5a;P|(A&MxjX!6mq}J816Tp&wlI8NQj$V_T9R=ma^=IKf?s~ z_zVM@vFJM4{4j~2WSkMN@s{(OpKA!gxF;RzIh}SFau6y_hoHs{4y_h8XfhzK$)d|3 zq_M#%O%^oQ$gK9DYIL-M zwOiYb<%a{gY-Xy6cVgiNpt| z8_-?qn{?<2Ip?2ZDV_6AGa<$NQ&RLSCN?9Dkark0@l$m9tVfFNx%5RM!D4JcLh7HO zreiPjj4RW3=X_1=|H`W9&njvR8gsxWmV#a-z*#B!r-}3T5{Z8QG?fN2Z_Z=m%F$02 zvm9`U>!@anW-=X<6=izUo<^MDfPY$AKZVwg+h`CoPGTx2RHrx5X}~|_@lWs4pN;UU*OHpA;rmO^<$PZ7}R}2;ut9@bjUruwz?S_lB1Cu5c+? z(bDk^4iAwW%@TIzu+pEpo=C8|?U+g=SQ-(O%_v)LBoY@;zJ`)L=lYw8gc(nt5tNPK zbIhh$5O%ouM)Z%s4;(Y-2#h&wRWbCRiT1>oW`2dMHtL!UDQtV?;z3hfz)ju2aBr$kF=GpJX!@?UB9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F6f>z<1IL=4+Z|LQ5iKMFN=wz*7C&^gl;H75wlwgU z;Z{q7^22h?p&neVRmz{XYV01gMSalMny=ig)Rbe8LVI|-#;}N5t8BB?8e6h}d(U>| WqW-_`8ED&6rMR0kV>7h1`u+nOD_N5O diff --git a/du6/program.c b/du6/program.c index a098906..91ede4b 100644 --- a/du6/program.c +++ b/du6/program.c @@ -1,6 +1,10 @@ #include #include #include +int porovnavacka(const void *meno1, const void *meno2){ + return strcmp(meno1, meno2); + +} int main(){ int pocet=0; @@ -16,9 +20,22 @@ int main(){ strcpy(mena[pocet_mien],riadok); pocet_mien++ ; } - for(int i=0; ipocet_mien){ + pocet=pocet_mien; + } + puts("Prijati studenti:"); + for(int i=0; i