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

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