Using Borland at the moment.
Cleaned up your == operator a bit... Make sure you're passing it a reference and not just normally, otherwise it'll try to make a copy of your object and that's probably not what you want to do.
Code:
int IntArray::operator==(const IntArray &array)
{
if (sizeOfArray == array.sizeOfArray)
{
int i;
for (i = 0; i < sizeOfArray; i++)
{
if(temp[i] != array.temp[i])
{
return 0;
}
}
return 1;
}
return 0;
}
The changes I made allow me to get past test 9 all the way to 17 as I stated. Also, make sure that your != operator has the same signature as the above.