From ac6c9bc642bbe5e388fe75209767acea7ab9a6e0 Mon Sep 17 00:00:00 2001 From: flovnes Date: Sun, 28 Apr 2024 09:31:20 +0300 Subject: [PATCH] . --- src/main.cs | 2 +- src/student.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cs b/src/main.cs index 34a50c0..37296a4 100644 --- a/src/main.cs +++ b/src/main.cs @@ -33,7 +33,7 @@ static void RunMenu(List students) { break; default: Console.WriteLine("Немає такого варіанту."); - break; + break; } } } while (match != 0); diff --git a/src/student.cs b/src/student.cs index 2c66353..2f2426f 100644 --- a/src/student.cs +++ b/src/student.cs @@ -19,12 +19,12 @@ public Student(string line) { patronymic = fields[2]; sex = char.Parse(fields[3]); dateOfBirth = fields[4]; - Marks = [ - char.Parse(fields[5]), + Marks = [ + char.Parse(fields[5]), char.Parse(fields[6]), char.Parse(fields[7]) - ]; + ]; scholarship = int.Parse(fields[8]); } } -} \ No newline at end of file +}