seminar02 fixed zero multiply issue

master
nihonium 2 years ago
parent 094a022df8
commit 5165d16ffa
No known key found for this signature in database
GPG Key ID: 0251623741027CFC

@ -151,6 +151,8 @@ Number Number::operator*(const Number & right) const
size << ")" << " " << "arg2=" << right << "(capacity=" << right. size << ")" << " " << "arg2=" << right << "(capacity=" << right.
capacity << ",size=" << right.size << ")" << std::endl; capacity << ",size=" << right.size << ")" << std::endl;
#endif #endif
if (*this == Number("0") || right == Number("0"))
return Number("0");
int i, j; int i, j;
int temp; int temp;
Number result; Number result;