QUOTE(manhaeve5 @ 8 May, 2008 - 12:33 PM)

Because, it checks if the number in the first array is in the second array, it returns true. So even if your first is 12222 and your second 11211 it will say true. U should set the ones uve already found into an unusaual integer, say -33.
lemme do that for u
CODE
bool sameValues(int a[], int b[], int size)
{
bool sameValues = true;
for (int i = 0; (i < size) && (sameValues == true); i++)
{
bool bValFound = false;
for (int j = 0; (j < size) && (bValFound == false); j++)
{
bValFound = (a[i] == b[j]);
b[j]=-33;
}
sameValues = bValFound;
}
return sameValues;
}
I didnt realy get the logic u used, but atleast try to understand what i'm saying

Good luck
Thanx for the help!..Yup that seems to work for 11112 and 21112 as it will then display that it is not the same values, but then when i put 12345 and 54321 it says its different but it should be the same. This is getting so confusing, would sorting arrays be bettter, but how would u write that? Any help would be greatly appreciated!