Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Course cu = new Course("Programming with C#");

            for (int i = 1; i <= 3; i++)
            {
                Student student = new Student("student" + i, "a" + i);
                for (int j = 0; j <= 4; j++)
                {
                    student.Grades.Push(100 - (j * 10));
                }

                cu.AddStudent(student);
            }
            cu.ListStudent();
            Console.WriteLine("Press any key to continue....");
            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public void AddStudent(Student a)
 {
     cstudent.Add(a);
     count++;
 }