zmeny
This commit is contained in:
parent
19d91f2d97
commit
88142f570c
@ -81,7 +81,10 @@ int main() {
|
|||||||
students[count++] = createStudent(name, count_of_vote);
|
students[count++] = createStudent(name, count_of_vote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(count == 0) {
|
||||||
|
printf("Nepodarilo nacitat nic\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
// Zoradenie študentov podľa počtu hlasov a mena
|
// Zoradenie študentov podľa počtu hlasov a mena
|
||||||
qsort(students, count, sizeof(Student), compare_students);
|
qsort(students, count, sizeof(Student), compare_students);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user