コード例 #1
0
ファイル: Complex.cpp プロジェクト: amorales2/UdemyC-Class
Complex operator+(double d, const Complex & c1)
{
	return Complex(c1.getReal() + d, c1.getImagionary());
}
コード例 #2
0
ファイル: Complex.cpp プロジェクト: amorales2/UdemyC-Class
Complex operator+(const Complex & c1, const Complex & c2)
{
	return Complex(c1.getReal() + c2.getReal(), c1.getImagionary() + c2.getImagionary());
}