Aktualizovat du2/program.c

This commit is contained in:
Tomáš Vlček 2026-03-12 00:25:02 +00:00
parent 23abb6ff4e
commit e78241fd91

View File

@ -79,6 +79,11 @@ int main() {
struct student *s1 = (struct student *)p1;
struct student *s2 = (struct student *)p2;
if (s1->meno == s2->meno)
{
//vrat len jeden zaznam, AK sa rovnaju
return s1->meno;
}
if (s1->pocetHlasov == s2->pocetHlasov)
{
//vrati lexikograficky zorad. instancie v poli (podla mena, NIE priezviska)