Aktualizovat du2/program.c

This commit is contained in:
Tomáš Vlček 2026-03-11 01:21:11 +00:00
parent ec1ab1acd1
commit 215ce59fe6

View File

@ -13,10 +13,15 @@ int main() {
int votes; int votes;
}; };
//pomocne premeny
struct student databaza[SIZE];
memset(databaza,0,SIZE*sizeof(struct student));
int size = 0;
char meno[SIZE]; char meno[SIZE];
char line[SIZE]; char line[SIZE];
memset(line,0,SIZE); memset(line,0,SIZE);
char* r = fgets(line,SIZE,stdin); char* r = fgets(line,SIZE,stdin);
if (r == NULL) if (r == NULL)
{ {
printf("Chyba: Zlyhalo nacitavanie vstupu.\n"); printf("Chyba: Zlyhalo nacitavanie vstupu.\n");