This commit is contained in:
Džubara 2024-03-22 00:26:48 +01:00
parent 44a3be3a54
commit 65292dc71b

View File

@ -74,10 +74,11 @@ int main() {
qsort(database, size, sizeof(struct student), compare); qsort(database, size, sizeof(struct student), compare);
// Výpis výsledkov // Výpis výsledkov
printf("Výsledky:\n");
for (int i = 0; i < size; ++i) { for (int i = 0; i < size; ++i) {
printf("%d %s\n", database[i].votes, database[i].name); printf("%d %s\n", database[i].votes, database[i].name);
} }
printf("\n");
return 0; return 0;
} }