#include "anketa.h" #include #include #include int count_students(struct student* students){ int i; for(i=0; ivotes==stud2->votes){ return 0; }else if(stud1->votesvotes){ return 1; } return -1; } void sort_students(struct student* students){ qsort(students,count_students(students),sizeof(struct student),compare); } void print_students(struct student* students){ for(int i=0;i