Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef COMPLEX
- #define COMPLEX
- #include <iostream>
- #include <math.h>
- #include <ostream>
- class Complex{
- private:
- double real;
- double img;
- public:
- Complex(double real, double img);
- Complex(Complex& otherComplex);
- void setReal(double newReal);
- void setImg(double newImg);
- double getReal();
- double getImg();
- double getBetrag();
- double getWinkel();
- void print();
- Complex operator+(Complex& otherComplex);
- Complex operator-(Complex& otherComplex);
- Complex operator*(Complex& otherComplex);
- Complex operator/(Complex& otherComplex);
- Complex operator!();
- friend std::ostream& operator<<(std::ostream& ostr, const Complex& c);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement