oprava preklepu
This commit is contained in:
parent
fb6aef1e0f
commit
79f80f9bc9
@ -11,7 +11,7 @@ int compare(const void* p1, const void* p2) { //bolo v zadani na webe
|
|||||||
// s1->name je meno študenta
|
// s1->name je meno študenta
|
||||||
if (s1->votes != s2->votes) return s2->votes - s1->votes;
|
if (s1->votes != s2->votes) return s2->votes - s1->votes;
|
||||||
//ak su rozne hlasy, tak vratim indikator ako ich zoradit podla hodnoty
|
//ak su rozne hlasy, tak vratim indikator ako ich zoradit podla hodnoty
|
||||||
else retutn strcmp (s1->name, s2->name);
|
else return strcmp (s1->name, s2->name);
|
||||||
//ak su hlasy rovnake, zistim, ktore meno je hore alebo dole abecedne
|
//ak su hlasy rovnake, zistim, ktore meno je hore alebo dole abecedne
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user