CompareArray
Compares the array with another one.
bool CompareArray(
const short& src[]
) const
|
Parameters
src[]
[in] Reference to an array used as a source of elements for comparison.
Return Value
Example:
//--- example for CArrayShort::CompareArray(const short &[])
#include <Arrays\ArrayShort.mqh>
//---
short src[];
//---
void OnStart()
{
CArrayShort *array=new CArrayShort;
//---
if(array==NULL)
{
printf("Object create error");
return;
}
//--- compare with another array
int result=array.CompareArray(src);
//--- delete array
delete array;
}
|