funguje
This commit is contained in:
parent
3ec0e85fbd
commit
d4bd4c56de
@ -21,6 +21,8 @@ int read_students(struct Student students[], int max_students) {
|
|||||||
strcpy(students[count].name, name);
|
strcpy(students[count].name, name);
|
||||||
students[count].votes = votes;
|
students[count].votes = votes;
|
||||||
count++;
|
count++;
|
||||||
|
// Zbavíme sa koncového znaku nového riadku z bufferu vstupu
|
||||||
|
getchar();
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user