This commit is contained in:
kr820js 2024-03-16 20:14:48 +01:00
parent b497c87026
commit c79bbf5d0b

View File

@ -18,6 +18,7 @@ int main()
} }
int element_size=SIZE+sizeof(int); int element_size=SIZE+sizeof(int);
qsort((void *)databaza, size,element_size,compar); qsort((void *)databaza, size,element_size,compar);
printf("Vysledky:\n");
for(int i=0; i<size; i++){ for(int i=0; i<size; i++){
printf("%d %s\n",databaza[i].score,databaza[i].name); printf("%d %s\n",databaza[i].score,databaza[i].name);
} }