bool ArraysEqual( int A[], int B[], int size )
{
bool equal= true;
for (int i= 0; i < size; i++)
{
if (A[i] != B[i])
equal= false;
}
return equal;
}
Parallel Arrays
Page 1 of 10 Replies - 75 Views - Last Post: 29 May 2009 - 04:20 AM
#1
Parallel Arrays
Posted 29 May 2009 - 04:20 AM
Description: This snippet is a function that tells if the index of two arrays of the same size are equal.
Page 1 of 1

New Topic/Question
Reply



MultiQuote

|