source: comparacioncriptosistemas/reescrituraDeCodigo/test_fieldnumber.C

interfaz
Last change on this file was 7576857, checked in by Fundación CENDITEL <cenditel@…>, 8 years ago

Se mueven archivos de reescritura al directorio reescrituraDeCodigo

  • Property mode set to 100644
File size: 409 bytes
Line 
1# include <iostream>
2# include <fieldnumber.H>
3# include <finitefield2.H>
4
5using namespace std;
6
7int main()
8{
9  FieldNumber<FiniteField2<uint64_t, 8>> nf1, nf2;
10
11  nf1 = 10;
12  nf2 = 20;
13
14  cout << nf1 + nf2 << '\n';
15  cout << nf1 - nf2 << '\n';
16  cout << nf1 * nf2 << '\n';
17
18  nf1 += nf2;
19  cout << nf1 << '\n';
20  nf1 -= nf2;
21  cout << nf1 << '\n';
22  nf1 *= nf2;
23  cout << nf1 << '\n';
24     
25 
26  return 0;
27}
Note: See TracBrowser for help on using the repository browser.