From b83500591d1b56780248d9c540fe707fbb91d46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20=C5=A0akov=C3=A1?= Date: Mon, 25 Mar 2019 15:17:05 +0100 Subject: [PATCH] test --- Makefile | 5 +++++ anketa | Bin 11543 -> 12747 bytes anketa.c | 17 ++++++++--------- anketa.o | Bin 6808 -> 6860 bytes main.c | 42 +++++++++++++++++++++++++++++++++++++----- main.o | Bin 4344 -> 5916 bytes vstup.txt | 5 +++-- 7 files changed, 53 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index c02bb17..6706dd8 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,8 @@ clean: anketa: anketa.o main.o gcc anketa.o main.o -o anketa +.PHONY: git +git: + git add . + git commit -am "test" + git push diff --git a/anketa b/anketa index bb610391b91d4545d7dffce6cef19b3ec72c4164..7742f1a2925e53566ebfae1f9a3ac366ee930bfd 100755 GIT binary patch literal 12747 zcmeHN3ve7qneN$#JXo@{k}TUvY-bY7#)N1k*^ceRfyj@wEu$pHv4c$>lhr=78?APi z-C1E7LL3w)HnJ!iLI`y^@bS7_U2+(b179ALf`K@xdnh?LLO~toNI3ay3SFWE9hmHW zU-$HCB%G?ds;jHJDtfEu@2~$ycmMs^neM(j(zV$z455Qh_yy7Ey#aF-=&B`(vr1UP z6wAd@ak;2sKI4AKAW8)&1(6p(^pgj?>K^bB8-W?gqiseRsEc@Pju4F07a_%$d4CEX z;Ir{G;G8jsr82&oUUdLVhdCX50kKsCnC8b>gp73-QWOz+}7?JVwob zKlp%u5VZZ)OuD-@6K~0+v!%V^VlKQw>7r_~ZCh^GC3RU(>RgOS+j9}=8}hrKx&JS( z`T1*~s*6m1?22bU^Q}MGI`R$jY7pOnI16z$q7K?;v`IMz`U}mFWtgBWgM8*uUi#A# z7LqdWvG@IAglTWEJ)i;Ubu)114E(Mcc=Zgd>&a{jG0B7*XunMZP~r_U@SYi%zRP?f zV6tuX?0nnq>C0v9q7yARwk^;VF?PXfVRz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+p5ACBy%&W}Ii5r&li>o%-q&ix0Rf;yrG% zEZ)P?I%66Q#F*gyoH70(QFfL*{PtKWrrkxL&DGJ}Azba0b#NJh(Ohr92v?G%4(_Zm zgZk~H6hiNNGQ%8F{|0r^bsOb05BzP9(Ot`+Wa0<{LSIDW03wr5WzCRlFBx4p#XCUm zoJaYOq!6i(DB=ncPwQTOm_l+8S|5Lyj22~bnsU0qUpG<6myj*8QOaXfp@(hs$RUV} zZS=|gjON#GusI~Vpf0hoSPo&VQX9)~JWMaMu|j?h@fI6natv5*W3@~|Tw!BUP6BT< zw_J+nYtdWfIdGM|rfu?7;7vAemj;TH{An^;^iH`1tmBO)Hc1_8O7S)m z@0O1P>-i}fLW{P@d5E|2?@er#`+z(7xG8Rve`TR=<*%9ipj-joV`Hb(&_~+FE|~|s z*T!z?1Ge$FS=%Gu1h(5v_sTI0)xm$Fs1`lQ@)nVvbw5I3kNz>9z5Hd)N}2u%d^*Ye zc_=>jjkKk&EaeC;VZuJYqg;IcdCwnk^O` zG^#dGFZ1zXXlu+#FhLhxMd3T^-?K6v2SF2_B zWpVR<`Hx!6Pv%X_9Q~c`iK$Xg$;@_7rz0{2*{(u)MB81UYvZRqLa;Il;lpI8_r2x3 zOMOT8N%g06F1S>Epo%BdLxBW;Pd!KXR&^|p(9gRWORBj*ly|CY#4GgQ>30WalyUBK` zw+$@lv{9~`3sM)2vwQon%U;F~k>w%AM!?kSw_tiO=fK5`U4SK>gBFB%Ax@!$F?>b9 S)i&>f4a~U12OMgsq~m{S1Ul;g diff --git a/main.c b/main.c index 4515f14..47e8013 100644 --- a/main.c +++ b/main.c @@ -1,16 +1,48 @@ #include "anketa.h" #include +#include -int main(){ +void count_votes(struct student* students){ + int sum=0; + for(int i=0;i1){ + FILE* fr=fopen(argv[1],"r"); + read_students(fr,students); + switch(argv[2][1]){ + case 'h': printf("-h vypise navod na ovladanie.\n-s vyhlada zadane meno.\n-p vypise vyslednu databazu mien.\n-o zotriedi vyslednu databazu podla pocetnosti.\n-c vypise pocet vsetkych odovzdanych hlasov.\n-i vypise pocet studentov, ktori dostali aspon jeden hlas.\n"); + break; + case 's': index=search(students,argv[3]); + if(index!=-1){ + printf("%s\n %d\n", students[index].name, students[index].votes); + }else{ + printf("Hladany student sa nenasiel.\n"); + } + break; + case 'p': print_students(students); + break; + case 'o': sort_students(students); + break; + case 'c': count_votes(students); + break; + case 'i': printf("%d\n", count_students(students)); + break; + } +} + /* int sz = count_students(students); if (sz <= 0){ // Nenacitalo sa nic return 0; } - sort_students(students); - print_students(students); + + print_students(students);*/ return 0; } diff --git a/main.o b/main.o index e618f77b51f6831d04ec624893390f3303ef5159..d754cad8267899d5040f0a79bf37c7c8ada1cd89 100644 GIT binary patch literal 5916 zcma)AdyE`)9sm7yXYZ!BdvE%{f(-NuC++RF^eE+34(PQ#I7`K1cxIW~ox9!M-psNy zyYx;J;dqs!2-=`QBSaE~gc?)=%F8B*1k?mj1VUmU0x7i7s>P6io}bTeesee1fAn{m z`Fua$=kGN$zr7m=hc`ysEUqP=}DvlAC?S6myQ16R_N2q&o@G#-v z;+et2fy{X4|(dc22(!caP z^SyWYrbE?ZkZx0txjjUKE_*ihEQ>Nsf6bKbcdtVCW(G6U`;8fT8+402cHh!dL9hyf zX(ptRRYjRIVtT)9e?qiBw}1LTVfvGf_S@e?iW%cp3z=u%LElVp)wd6yqlLvXGlCtD zcL&8vC^r3!g4tjI<)|3nU)r;`hl7!?^d0F&0+z` zM#V1LZrRDU^!c!sNUbUA9BaaHJ?N`ZRAbVwI7PQ^745(tv8U?RMA>oS;aO8&P%Asd zGF*@Lsd~kVZB@O36S$rql;K~9GAgar@SR|MvQVBeXAPdq@_bG-?m)Gwf(YF$#RBn z#>DSC>iRSE_Z+2*d;;i4W46D+_diJ?5=!$luejZYi|uiZi47o$*Vo{lG@7~P zlG6N$EYa+f8OtM15!ql@gq{%#6cu(goCk`+oSni-1es0Vw`B+VlF`Mc9IZc}oj$NURtz_mi%X8x`GTUPY!PXnwq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