BigInt Datatype

Mar 26, 2012 at 9:08pm
I need an integer datatype that can hold a maximum of 20 digits. I have tried __int64 and long long with no success. How would I make use of the BigInt datatype in C++ using Code::Blocks?
Last edited on Mar 26, 2012 at 9:10pm
Mar 26, 2012 at 9:13pm
You'll need a bignum lib (or you'll have to write your own.

This is a popular one:

http://gmplib.org/
Mar 26, 2012 at 9:24pm
What would my #include statement look like after I saved the library into the Lib folder of Code Blocks and what datatype would I use?
Last edited on Mar 26, 2012 at 9:40pm
Mar 26, 2012 at 9:49pm
Don't know. I've never used that lib myself.

Check the site for some tutorials or examples.

Wish I could be more help, sorry.
Topic archived. No new replies allowed.