poly_int.h

来自「终于找到了bpsk信号的调制」· C头文件 代码 · 共 37 行

H
37
字号
//
//  File = poly_int.h
//

#ifndef _POLY_INT_H_
#define _POLY_INT_H_
#include <iostream>
using std::ostream;

class PolyOvrIntegers
{
public:

  PolyOvrIntegers(void);
  PolyOvrIntegers(int degree);
  PolyOvrIntegers(int degree, int coeff);
  int MaxDegree(void);
  int Coefficient(int degree);
  void SetRemainder( PolyOvrIntegers* poly );
  void SetRemainder( int degree, int* coeff );
  PolyOvrIntegers& operator* (const PolyOvrIntegers &right);
  PolyOvrIntegers& operator*= (const PolyOvrIntegers &right);
  PolyOvrIntegers& operator/ (const PolyOvrIntegers &divisor);
  PolyOvrIntegers& operator/= (const PolyOvrIntegers &divisor);
  void DumpToStream( ostream* output_stream);
  friend PolyOvrIntegers* Derivative(const PolyOvrIntegers *right);

private:
  int Degree;
  int* Coeff;
  int Rem_Degree;
  int* Rem_Coeff;
};


#endif

⌨️ 快捷键说明

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