seminar02 fixed zero multiply issue
This commit is contained in:
		
							parent
							
								
									094a022df8
								
							
						
					
					
						commit
						5165d16ffa
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -151,6 +151,8 @@ Number Number::operator*(const Number & right) const | |||
| 	size << ")" << " " << "arg2=" << right << "(capacity=" << right. | ||||
| 	capacity << ",size=" << right.size << ")" << std::endl; | ||||
| #endif | ||||
|     if (*this == Number("0") || right == Number("0")) | ||||
|             return Number("0"); | ||||
|     int i, j; | ||||
|     int temp; | ||||
|     Number result; | ||||
|  |  | |||
		Reference in a new issue