public void Add(string value) { n++; Muchie[] t = new Muchie[n]; for (int i = 0; i < n - 1; i++) { t[i] = v[i]; } t[n - 1] = new Muchie(value); v = t; }
public Muchie Del() { Muchie value = v[0]; n--; Muchie[] t = new Muchie[n]; for (int i = 0; i < n; i++) { t[i] = v[i + 1]; } v = t; return(value); }