Description: class complex
{
public:
complex (double r = 0, double i = 0): re (r), im (i) { }
complex& operator += (const complex&);
complex& operator -= (const complex&);
complex& operator *= (const complex&);
complex& operator /= (const complex&);
double real () const { return re; }
double imag () const { return im; }
private:
double re, im;
friend complex& __doapl (complex *, const complex&);
friend complex& __doami (complex *, const complex&);
friend complex& __doaml (complex *, const complex&);
};
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
complex_test.cpp | 730 | 2015-07-31
|
complex.h | 4047 | 2015-07-31 |