diff --git a/cv5/program.c b/cv5/program.c index 349bd75..697a859 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -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; }