I think we need more information. For example, in the code you posted, bigIntegerArray and bigInteger aren't defined. Looking at your + operator, you probably want to do something like:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
BigInteger BigInteger :: operator + (BigInteger obj)
{
BigInteger temp;
int n;
int carry = 0;for (int i = 4; i >=0; i--)
{
n = bigIntegerArray[i] + obj.bigIntegerArray[i] + carry;if (n > 999999999) {
carry = 1;n -= 100000000;
}
temp[i] = n;
}
if (carry) {// You overflowed. Do Something.}return temp;
}