Midterm Exam 2/Midterm 2.cpp
bool HugeInteger::equal(HugeInteger &hugeInt2) {
  if (isZero() && hugeInt2.isZero())
    return true;

  if (size != hugeInt2.size)
    return false;

  return arrayEqual(hugeInt2, size - 1);
}
// test if two HugeIntegers are equal
test if two HugeIntegers are equal
test if two HugeIntegers are equal
bool HugeInteger::equal(HugeInteger &hugeInt2) {
  if (isZero() && hugeInt2.isZero())
    return true;
  if (size != hugeInt2.size)
    return false;
  return arrayEqual(hugeInt2, size - 1);
}
bool HugeInteger :: equal ( HugeInteger & hugeInt2 ) { if ( isZero ( ) && hugeInt2 . isZero ( ) ) return true ; if ( size != hugeInt2 . size ) return false ; return arrayEqual ( hugeInt2 , size - 1 ) ; }
test if two HugeIntegers are equal
test if two HugeIntegers are equal