From cd4f1b0ecf07f5b8df8747e3d94115cde95ad473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Wed, 11 Mar 2026 10:54:41 +0000 Subject: [PATCH] Aktualizovat du2/program.c --- du2/program.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;