Exemplo n.º 1
0
        static void Main()
        {
            Console.WriteLine("Введите количество студентов которых хотите добавить в таблицу:");
            int n = Convert.ToInt32(Console.ReadLine());

            Student[] mass = new Student[n];
            for (int i = 0; i < n; i++)
            {
                Console.WriteLine("Введите номер зачетки:");
                int nomer = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("Введите Имя:");
                string imya = Console.ReadLine();
                Console.WriteLine("Введите отчество:");
                string otchestvo = Console.ReadLine();
                Console.WriteLine("Введите фамилию:");
                string fam = Console.ReadLine();
                mass[i] = new Student(nomer, imya, otchestvo, fam);
            }
            MarkList sessiya1 = new MarkList(mass);

            //for (int i = 0; i < n; i++)
            //{
            //    sessiya1.DobavMark();
            //}

            Analistic s = new Analistic(sessiya1);

            Console.WriteLine("Введите предмет:");
            string sub = Console.ReadLine();

            s.fun(sub);
            Console.WriteLine("студенты получившие \"отлично\" по предмету " + sub);
            s.fun2(sub);
            Console.WriteLine("студенты получившие \"два\" по предмету " + sub);
            s.fun3(sub);
            s.fun4();
            Console.ReadKey();
        }
Exemplo n.º 2
0
 public Analistic(MarkList m)
 {
     students = m.studmas;
     mark     = m.markmas;
 }