22 lines
370 B
C
22 lines
370 B
C
|
#pragma once
|
|||
|
|
|||
|
class CComplex
|
|||
|
{
|
|||
|
public:
|
|||
|
double m_dReal; //<2F>Ƽƹ곡
|
|||
|
double m_dImag; //<2F>ƼƵ곡
|
|||
|
|
|||
|
public:
|
|||
|
//<2F>غc<D8BA>B<EFBFBD>Ѻc<D1BA>l
|
|||
|
CComplex ();
|
|||
|
CComplex (double, double);
|
|||
|
~CComplex ();
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>⤸
|
|||
|
CComplex operator+ (const CComplex &);
|
|||
|
CComplex operator- (const CComplex &);
|
|||
|
CComplex operator* (const CComplex &);
|
|||
|
|
|||
|
//<2F>p<EFBFBD><70><EFBFBD>ƼƮ<C6BC><C6AE>T<EFBFBD>j<EFBFBD>p
|
|||
|
double ComputeAmplitude () const;
|
|||
|
};
|