예제 #1
0
 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;
 }
예제 #2
0
 public void Copy(CArray Destiny)
 {
     for (int i = 0; i < mNum; i++)
     {
         this.mArray[i] = Destiny.mArray[i];
     }
     this.mNum = Destiny.mNum;
 }
예제 #3
0
 // Constructor copia.
 public CArray(CArray A)
 {
     for (int i = 0; i < mArray.Length; i++)
     {
         this.mArray[i] = A.mArray[i];
     }
     this.mNum = A.mNum;
 }
예제 #4
0
 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);
 }
예제 #5
0
        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);
        }
예제 #6
0
 private void frmArraysOperations_Load(object sender, EventArgs e)
 {
     CArray D = new CArray(B);
 }