From d4bd4c56ded1198790e3d98d36f82ce5e01d67c2 Mon Sep 17 00:00:00 2001 From: st529yr Date: Fri, 22 Mar 2024 08:51:27 +0100 Subject: [PATCH] funguje --- cv5/program.c | 2 ++ 1 file changed, 2 insertions(+) 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; }