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

📄 polymath.cpp

📁 《无线通信系统仿真——c++使用模型》这本书的源代码
💻 CPP
字号:
// PolyMath.cpp : Defines the entry point for the console application.
//

#include <iostream>
#include <fstream>
#include "galfield.h"
#include "pfelem.h"
#include "xfelem.h"
#include "poly_pf.h"
#include "primpoly.h"
#include "cycpoly.h"
#include "stdlib.h"
#include "berlefac.h"
#ifdef _DEBUG
 ::ofstream DebugFile("polymath.dbg", ios::out);
#endif

int main(int argc, char* argv[])
{
  int big_fld_deg;
  ExtenFieldElem xa,xb;
  ExtenFieldElem xc,xd;
  ExtenFieldElem xe,xf;
  cout << "Hello from main()" << endl;

  int pp_degree = 10;
  int prime_field_base = 2;

  PrimitivePolynomialSet* pp_set = 
                      new PrimitivePolynomialSet( prime_field_base, 
                                                  pp_degree);
  DebugFile << "simplest primitive poly:" << endl;
  (pp_set->GetSimplest())->DumpToStream(&DebugFile);

  big_fld_deg = pp_degree;
  GaloisField* big_field = new GaloisField( prime_field_base,
                                            big_fld_deg, 
                                            pp_set->GetSimplest());
  cout << "DONR " << endl;


  cin >> prime_field_base;
	return 0;
}

⌨️ 快捷键说明

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