diff --git a/du6/program b/du6/program index 2713a09..6495810 100755 Binary files a/du6/program and b/du6/program differ 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