pvjc19cv5/main.c
Michaela Šaková 177d370b6f test
2019-03-23 19:14:52 +01:00

17 lines
376 B
C

#include "anketa.h"
#include <string.h>
int main(){
struct student students[MAXSTUDENTS];
memset(students,0,sizeof(struct student)*(MAXSTUDENTS));
read_students(stdin,students);
int sz = count_students(students);
if (sz <= 0){
// Nenacitalo sa nic
return 0;
}
sort_students(students);
print_students(students);
return 0;
}