Page 1 of 1
BigInt in C++!!!
Posted: Tue Jun 26, 2007 12:04 am
by ankit.arora
can someone please explain me what is this BIGINT and how can i use it for lengthy integer values...... actually i tried the syntax but there was a stright forward error....... please help!!!!!
Thanks!!!
Posted: Tue Jun 26, 2007 12:33 am
by stubbscroll
C++ does not have built-in support for big integers. You need to create routines yourself or find routines written by someone else.
I'm curious, what syntax did you try, the one in Java?
Posted: Tue Jun 26, 2007 7:53 pm
by ankit.arora
Thanks for that!!! I got the point now actually i read many times on this forum that there is a need to use bigint..... and by this i thought that like java we have something in c++..... actually i m a newcomer to c++..... so i got error while trying it and than i thought to enquire about that....
but still i m not very much sure about using this concept ..... if u can somehow give me an example reference.... i think i will get it better!!!
Thanks a lot!!!!!
Posted: Thu Jun 28, 2007 10:52 pm
by stubbscroll
The only example reference I remember off the top of my head is this:
http://www.shygypsy.com/tools/BigInt.cpp
But you could try googling also. Others probably exist.
Re: BigInt in C++!!!
Posted: Tue Mar 29, 2011 6:46 am
by DD
WOW, this file ROCKS! Although it said there are still some bugs, but I think it would be a good start if you try to implement your own Bigint library.
