Ejemplo n.º 1
0
 public Students(string name, int mark1, int mark2, int mark3, int mark4)
 {
     Students student = new Students();
     _name = name;
     _mark1 = mark1;
     _mark2 = mark2;
     _mark3 = mark3;
     _mark4 = mark4;
     _average = student.CalcAverage(_mark1, _mark2, _mark3, _mark4);
 }
Ejemplo n.º 2
0
 public void Push(string name, int mark1, int mark2, int mark3, int mark4)
 {
     if (_counter < 1000)
     {
         _counter++;
         Students student = new Students(name, mark1, mark2, mark3, mark4);
         arr[_counter] = student;
     }
     else
         Console.WriteLine("Stack Overflow");
 }