⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 complex.h

📁 矩阵类 简单的矩阵类的编写
💻 H
字号:
// complex.h: interface for the Complex class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPLEX_H__621EF93F_D626_49D7_B0C1_EEA88F0D5090__INCLUDED_)
#define AFX_COMPLEX_H__621EF93F_D626_49D7_B0C1_EEA88F0D5090__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Complex;
Complex operator --(Complex& x);//前置
Complex operator --(Complex& x, int); //后置

class Complex  
{
public:
	double GetReal();
	double GetImage();
	void SetImage(double x);
	void SetReal(double x);
	
	Complex(double x = 0, double y = 0);
	Complex(Complex &x);

	Complex friend operator *(Complex& x, Complex& y);


	virtual ~Complex();
//	Complex operator +(Complex& op);
	Complex operator ++(void);//前置
	Complex operator ++(int); //后置
//	friend Complex operator -(Complex& x, Complex& y);
//	friend Complex operator --(Complex& x);//前置
//	friend Complex operator --(Complex& x, int); //后置
	int operator !();
	int operator ==(Complex op);


//private:
	double m_dReal, m_dImage;
};

#endif // !defined(AFX_COMPLEX_H__621EF93F_D626_49D7_B0C1_EEA88F0D5090__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -