public void UpdateSV(string MSSV) { int id = SearchSV(MSSV); if (id != -1) { Console.WriteLine("Input Student : "); SV us = SV.inputSV(); us.pMSSV = MSSV; ls[id] = us; Console.WriteLine("Update Successed !"); } else { Console.WriteLine("Update Failed !"); } }
public void AddSV(SV s) { this.ls[index] = s; this.index++; }