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

📄 testgf2.cc.txt

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 TXT
字号:
//  Program: testgf2.cc//  test basic operations on GF2 class// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#include "GF2.h"main(){   GF2 a,b,c;   int b1 = 1;   char b2 = 1;   unsigned char b3=1;   a = b1;   b = b2;   c = b3;   cout << a << endl;   cout << b << endl;   cout << "a+b=" << a+b << endl;   cout << "a+=b=" << (a+= b) << endl;   a = b1;   cout << "a+1=" << a+1 << endl;   cout << "1+a=" << 1+a << endl;   cout << "a=" << a << "  b=" << b << endl;   cout << "a*b=" << a*b << endl;   cout << "a*=b=" << (a*=b) << endl;   a = b1;   cout << "a*1=" << a*1 << endl;   cout << "1*a=" << 1*a << endl;   cout << "a^3=" << (a^3) << endl;   cout << "a/b=" << a/b << endl;   cout << "a/=b=" << (a/=b) << endl;   a = b1;   cout << "1/a=" <<  (1/a) << endl;   cout << "a==b" << (a==b) << endl;   cout << "a!=b" << (a!=b) << endl;   cout << "-a=" << -a << endl;}/*Local Variables:compile-command: "g++ -g -o testgf2 testgf2.cc"End:*/

⌨️ 快捷键说明

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