Aktualizovat du2/program.c
This commit is contained in:
parent
a94dbd8bef
commit
cd4f1b0ecf
@ -10,11 +10,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];
|
||||
memset(databaza,0,SIZE*sizeof(struct student));
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user