https://youtu.be/2rXLncQD27c

class Complex
{
public:
	Complex()
	{
		real = 0;
		imag = 0;
	}

private:
	double real;
	double imag;
	
};
class Complex
{
public:
	Complex(): real(0),imag(0){}
private:
	double real;
	double imag;
	
};
class Complex
{
public:
	Complex(double real_= 0, double imag_= 0)
	{
		real = real_;
		imag = imag_;
	}
private:
	double real;
	double imag;
	
};
class Complex
{
public:
	Complex(double real_ = 0, double imag_ = 0) : real(real_),imag(imag_){}
private:
	double real;
	double imag;
	
};
class Complex
{
public:
	Complex(double real = 0, double imag = 0) : real(real), imag(imag) {}
private:
	double real;
	double imag;
	
};

+ Recent posts