コード例 #1
0
 public Students(string name, int point1, int point2, int point3, int point4)
 {
     Students student = new Students();
     _name = name;
     _point1 = point1;
     _point2 = point2;
     _point3 = point3;
     _point4 = point4;
     _average = student.calcAverage(_point1, _point2, _point3, _point4);
 }
コード例 #2
0
 public void push(string name, int point1, int point2, int point3, int point4)
 {
     //добавить
     if (_counter < 1000)
     {
         _counter++;
         Students student = new Students(name, point1, point2, point3, point4);
         arr[_counter] = student;
     }
     else
         Console.WriteLine("Overflow");
 }