📄 complex.h
字号:
#ifndef COMPLEX_H
#define COMPLEX_H
class AFX_EXT_CLASS CComplex {
public:
double re;
double im;
public:
CComplex(double _re = 0.0, double _im = 0.0){
re = _re;
im = _im;
}
CComplex operator=(const CComplex& a);
CComplex operator+(const CComplex& a);
CComplex operator-(const CComplex& a);
CComplex operator*(const CComplex& a);
CComplex operator/(double dNum);
~CComplex();
double Mod();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -