Aktualizovat du2/program.c
This commit is contained in:
parent
4b6eca35c7
commit
25dc8c1eef
@ -17,7 +17,7 @@ int main() {
|
||||
|
||||
//citanie vstupu
|
||||
char line[SIZE];
|
||||
memset(line,0, sizeof(name));
|
||||
memset(line,0, sizeof(line));
|
||||
char* r = fgets(line,SIZE,stdin);
|
||||
|
||||
if (r == NULL)
|
||||
@ -61,13 +61,13 @@ int main() {
|
||||
{
|
||||
//20 je nahodne cislo, resp. realne budeme vypisovat userov
|
||||
//, pokial nenarazime na prazdny student ID zaznam
|
||||
if (DBStudent[i].meno == '\0')
|
||||
if (DBStudenti[i].meno == '\0')
|
||||
{
|
||||
break;
|
||||
}
|
||||
//malo by vypisovat zaznamy takto:
|
||||
//10_Tomas_Vlcek
|
||||
printf("%d %s", DBStudent[i].pocetHlasov, DBStudent[i].meno);
|
||||
printf("%d %s", DBStudenti[i].pocetHlasov, DBStudenti[i].meno);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user