Maybe memcmp?
Code:
char array1[4][4] = { "Abe", "Bob", "Mat", "Joe" };
char array2[4][4] = { "Bob", "Mat", "Joe", "Abe" };
char array3[4][4] = { "Abe", "Bob", "Mat", "Joe" };
// Compare array1 and array2
if( !memcmp(array1,array2,sizeof(array1)) )
cout << "They are the same." << endl;
else
cout << "They are different." << endl;
// Compare array1 and array3
if( !memcmp(array1,array3,sizeof(array1)) )
cout << "They are the same." << endl;
else
cout << "They are different." << endl;
Should output:
Code:
They are different.
They are the same.