diff --git a/du2/program.c b/du2/program.c index 493eb87..dd124b4 100644 --- a/du2/program.c +++ b/du2/program.c @@ -9,11 +9,6 @@ int najdi_studenta(struct student* students,int size, const char* name); int main() { - - struct student { - char name[SIZE]; - int votes; - }; //pomocne premeny struct student databaza[SIZE]; @@ -74,6 +69,11 @@ int najdi_studenta(struct student* students,int size, const char* name) return -1; } +struct student +{ + char name[SIZE]; + int votes; +}; int komparator(const void* p1, const void* p2) { struct student* s1 = (struct student*)p1;