📄 galoisfieldout.cpp
字号:
/* ********************************************************************* * * * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -