Compare Array

 

Hi,

i have 2 array like

double a[95];

double b[95];

Any idea how in a fast way i can compare if the values of both arrays is equal?

Something except "for (int i = 0; i < 96; i++)" ..

Thank you for your ideas

 
export the arrays to a DLL and use memcmp.
 
phy wrote >>
export the arrays to a DLL and use memcmp.

thx phy, i give a try

 

EADeveloper try this:


bool error_flag = false;

for (int i=0; i<96; i++)
      { 
       if (a[i] != b[i])
        {
          error_flag = true;
        }
       }
if (error_flag == true)
 { Comment ("Array values not equal");
 }
 

"Something except "for (int i = 0; i < 96; i++)" .."

You didn't read the request, JT2008

 
I agree phy ;-)
Reason: