CompareArray

Vergleicht ein Array mit einem anderen Array.

bool  CompareArray(
   const int&  src[]      // Quelle-Array 
   ) const

Parameter

src[]

[in]  Referenz auf das Quelle-Array.

Rückgabewert

Gibt true zurück, wenn die Arrays gleich sind, ansonsten false.

Beispiel:

//--- example for CArrayInt::CompareArray(const int &[])
#include <Arrays\ArrayInt.mqh>
//---
int src[];
//---
void OnStart()
  {
   CArrayInt *array=new CArrayInt;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- compare with another array
   int result=array.CompareArray(src);
   //--- delete array
   delete array;
  }