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

📄 complex.h

📁 MFC编写的一个FIR的程序
💻 H
字号:
// complex.h: interface for the complex class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_complex_H__8ED76D2A_8F04_4491_8A2D_D5BB88C6B17B__INCLUDED_)
#define AFX_complex_H__8ED76D2A_8F04_4491_8A2D_D5BB88C6B17B__INCLUDED_

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

class complex  
{
    double Real,Image;
public:
	void daon(int n);
	double ShowReal();
	double abs();
	complex(double r=0.0,double i=0.0):Real(r),Image(i){}
	complex(complex &com){
		Real=com.Real;
		Image=com.Image;
	}
	friend complex operator+(const complex &,const complex &);
	friend complex operator-(const complex &,const complex &);
	friend complex operator*(const complex &,const complex &);
    void operator=(const complex &);
	
    void copy(double r,double i){
		Real=r;
		Image=i;
	}
	double arg();

};

#endif // !defined(AFX_complex_H__8ED76D2A_8F04_4491_8A2D_D5BB88C6B17B__INCLUDED_)

⌨️ 快捷键说明

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