You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef COMPLEX_H
|
|
#define COMPLEX_H
|
|
|
|
class Complex
|
|
{
|
|
private:
|
|
double real;
|
|
double imaginary;
|
|
|
|
public:
|
|
Complex(double real, double imaginary);
|
|
double getReal() const;
|
|
double getImaginary() const;
|
|
Complex operator+(const Complex& other) const;
|
|
};
|
|
|
|
#endif
|