From 3183d860526a8866effc289833a7dcf048d6600c Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 22 Apr 2024 18:02:17 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv10/program.c b/cv10/program.c index 25adc30..720433d 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -30,12 +30,13 @@ int main() { if (!found) { strcpy(names[num_accepted], temp_name); + strcat(names[num_accepted], "\n"); num_accepted++; } } if (num_accepted == 0) { - printf("Ziadne prihlasky\n"); + printf("Ziadne prihlasky"); } else { printf("Prijati studenti:"); for (int i = 0; i < num_accepted; i++) { @@ -44,7 +45,7 @@ int main() { } if (num_accepted < max_students) { - printf("Neprijati studenti:\n"); + printf("Neprijati studenti:"); for (int i = num_accepted; i < max_students; i++) { printf("%s", names[i]); }