cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
BigInt Datatype
BigInt Datatype
Mar 26, 2012 at 9:08pm
Mar 26, 2012 at 9:08pm UTC
MathematicsFanatic
(18)
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:10pm UTC
Mar 26, 2012 at 9:13pm
Mar 26, 2012 at 9:13pm UTC
Disch
(13742)
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
Mar 26, 2012 at 9:24pm UTC
MathematicsFanatic
(18)
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:40pm UTC
Mar 26, 2012 at 9:49pm
Mar 26, 2012 at 9:49pm UTC
Disch
(13742)
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.