git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Arbint class with += and -= operators
[ipdf/code.git]
/
src
/
tests
/
arb.cpp
diff --git
a/src/tests/arb.cpp
b/src/tests/arb.cpp
index
29c6325
..
c867a8f
100644
(file)
--- a/
src/tests/arb.cpp
+++ b/
src/tests/arb.cpp
@@
-2,13
+2,16
@@
#include <cstdio>
#include <iostream>
#include <cstdio>
#include <iostream>
-#include "arbint.
cpp
"
+#include "arbint.
h
"
using namespace std;
using namespace IPDF;
int main(int argc, char ** argv)
{
using namespace std;
using namespace IPDF;
int main(int argc, char ** argv)
{
- Arbint a(4294967296L);
- printf("%s\n", a.Str().c_str());
+ Arbint a(100L);
+ Arbint b(200L);
+
+ Arbint c(b-a);
+ printf("(%d), %s\n",c.Sign(), c.DigitStr().c_str());
}
}
UCC
git Repository :: git.ucc.asn.au