public void Copy(CArray Origin, CArray Destiny) { for (int i = 0; i < Origin.mNum; i++) { Destiny.mArray[i] = Origin.mArray[i]; } Destiny.mNum = Origin.mNum; }
public void Copy(CArray Destiny) { for (int i = 0; i < mNum; i++) { this.mArray[i] = Destiny.mArray[i]; } this.mNum = Destiny.mNum; }
// Constructor copia. public CArray(CArray A) { for (int i = 0; i < mArray.Length; i++) { this.mArray[i] = A.mArray[i]; } this.mNum = A.mNum; }
public void Copy(CArray Origin, CArray Destiny, ListBox lstData) { for (int i = 0; i < Origin.mNum; i++) { Destiny.mArray[i] = Origin.mArray[i]; } Destiny.mNum = Origin.mNum; Print(lstData); }
public void Reverse() { int i, j; CArray Temp = new CArray(); for (i = 0, j = this.mNum - 1; i < this.mNum; i++, j--) { Temp.mArray[j] = this.mArray[i]; } Temp.mNum = this.mNum; Copy(Temp, this); }
private void frmArraysOperations_Load(object sender, EventArgs e) { CArray D = new CArray(B); }