📄 cmpxpoly.h
字号:
//
// File = cmpxpoly.h
//
#ifndef _CMPXPOLY_H_
#define _CMPXPOLY_H_
#include <fstream.h>
#include "d_cmplx.h"
class CmplxPolynomial
{
public:
// default constructor
CmplxPolynomial( );
// copy constructor
CmplxPolynomial( const CmplxPolynomial &original);
// constructor for initializing a binomial
CmplxPolynomial( const double_complex coeff_1,
const double_complex coeff_0);
// assignment operator
CmplxPolynomial& operator= (const CmplxPolynomial &right);
// multiply assign operator
CmplxPolynomial& operator*= (const CmplxPolynomial &right);
// dump polynomial to an output stream
void DumpToStream( ofstream* output_stream);
// get degree of polynomial
int CmplxPolynomial::GetDegree(void);
// return specified coefficient
double_complex CmplxPolynomial::GetCoefficient(int k);
friend class Polynomial;
private:
int Degree;
double_complex* Coefficient;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -