This commit is contained in:
Tančáková 2024-03-22 08:51:27 +01:00
parent 3ec0e85fbd
commit d4bd4c56de

View File

@ -21,6 +21,8 @@ int read_students(struct Student students[], int max_students) {
strcpy(students[count].name, name);
students[count].votes = votes;
count++;
// Zbavíme sa koncového znaku nového riadku z bufferu vstupu
getchar();
}
return count;
}