📄 complex.h
字号:
#ifndef COMPLEX_H
#define COMPLEX_H
#include <iostream>
using std::ostream;
class Complex {
public:
Complex();
Complex(double X);
Complex(double X, double Y);
Complex(Complex const& c);
Complex operator + (Complex const& X);
Complex operator - (Complex const& X);
Complex operator * (Complex const& X);
Complex operator / (Complex const& X);
Complex operator / (double d);
double absCplx() const;
Complex Conj() const;
void Display() const;
void Display(ostream& out) const;
public:
double Real,Imag;
};
ostream& operator << (ostream& out, Complex& c);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -