Handling complex number using C++ class
#ifndef COMPLEX_H #define COMPLEX_H #include <iostream> #include <fstream> #include <string> #include <complex> class Complex { private: double real; double imag; public: Complex(); Complex(const Complex& obj); Complex(const std::string& str); Complex(double real); Complex(double real, double imag); double real_num() const; double imag_num() const; std::string toString() const; Complex operator+(const Complex& rhs) const; Complex operator-(const Complex& rhs) const; Complex operator*(const … Continue reading Handling complex number using C++ class