Aktualizovat du2/program.c
This commit is contained in:
parent
ec1ab1acd1
commit
215ce59fe6
@ -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");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user