galoisfieldout.cpp
来自「心电图小波零树压缩演算法的研究」· C++ 代码 · 共 52 行
CPP
52 行
/* ********************************************************************* * * * Galois Field Arithmetic Library * * Prototype: Galois Field STD OUT Test * * Version: 0.0.1 * * Author: Arash Partow - 2000 * * URL: http://www.partow.net/projects/galois/index.html * * * * Copyright Notice: * * Free use of this library is permitted under the guidelines and * * in accordance with the most current version of the Common Public * * License. * * http://www.opensource.org/licenses/cpl.php * * * **********************************************************************/#include <iostream>#include <stdlib.h>#include <stdio.h>#include "GaloisField.h"#include "GaloisFieldElement.h"#include "GaloisFieldPolynomial.h"/* p(x) = 1x^8+1x^7+0x^6+0x^5+0x^4+0x^3+1x^2+1x^1+1x^0 1 1 0 0 0 0 1 1 1*/unsigned int poly[9] = {1,1,1,0,0,0,0,1,1};/* A Galois Field of type GF(2^8)*/galois::GaloisField gf(8,poly);int main(int argc, char *argv[]){ std::cout << gf; exit(EXIT_SUCCESS); return true;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?