Arbint class with += and -= operators
[ipdf/code.git] / src / tests / arb.cpp
index 29c6325..c867a8f 100644 (file)
@@ -2,13 +2,16 @@
 #include <cstdio>
 #include <iostream>
 
-#include "arbint.cpp"
+#include "arbint.h"
 
 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