コード例 #1
0
ファイル: Complex.cpp プロジェクト: Hamid255/Matrix
bool Complex::operator==(const Complex & right) const
{
	return (getReal() == right.getReal() && getImg() == right.getImg());
}
コード例 #2
0
ファイル: Complex.cpp プロジェクト: Hamid255/Matrix
Complex Complex::operator*(const Complex & right) const
{
	return Complex(getReal()*right.getReal()-getImg()*right.getImg(), getReal()*right.getImg()+getImg()*right.getReal());
}