Compare Array New comment [Deleted] 2008.12.20 02:36 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 Compare array values about an array compare between 2 time array ; how to define? Ray 2008.12.20 05:31 #1 export the arrays to a DLL and use memcmp. [Deleted] 2008.12.20 14:17 #2 phy wrote >> export the arrays to a DLL and use memcmp. thx phy, i give a try [Deleted] 2008.12.20 17:39 #3 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"); } Ray 2008.12.21 09:16 #4 "Something except "for (int i = 0; i < 96; i++)" .." You didn't read the request, JT2008 [Deleted] 2008.12.21 10:28 #5 I agree phy ;-) New comment
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