git.ucc.asn.au
/
ipdf
/
code.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Arbint class with += and -= operators
[ipdf/code.git]
/
src
/
tests
/
arb.cpp
1
#include <cstdlib>
2
#include <cstdio>
3
#include <iostream>
4
5
#include "arbint.h"
6
7
using namespace std;
8
using namespace IPDF;
9
10
int main(int argc, char ** argv)
11
{
12
Arbint a(100L);
13
Arbint b(200L);
14
15
Arbint c(b-a);
16
printf("(%d), %s\n",c.Sign(), c.DigitStr().c_str());
17
}
UCC
git Repository :: git.ucc.asn.au