Aktualizovat du2/program.c
This commit is contained in:
parent
23abb6ff4e
commit
e78241fd91
@ -79,6 +79,11 @@ int main() {
|
|||||||
struct student *s1 = (struct student *)p1;
|
struct student *s1 = (struct student *)p1;
|
||||||
struct student *s2 = (struct student *)p2;
|
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)
|
if (s1->pocetHlasov == s2->pocetHlasov)
|
||||||
{
|
{
|
||||||
//vrati lexikograficky zorad. instancie v poli (podla mena, NIE priezviska)
|
//vrati lexikograficky zorad. instancie v poli (podla mena, NIE priezviska)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user