How to make a '32 digit' calculator c++???

Hi all,
Im now focussing on small programs,
How to make a '32 digit' calculator c++???
int / double can't hold 32 digits!?
Can you all please help me out?
Thankyou everyone in advance!!!
closed account (13bSLyTq)
Hi,

You need to refer to datatypes ranges:

http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx

The biggest datatype in a x64 is __int64 (equivalent to long long ).
I also recommend you to look at algorithms such as: http://en.wikipedia.org/wiki/Hamming_weight

The algorithms come into great use when you deal with large numbers.
Use an arbitrary precision library like GMP or MPIR. Anyway you will probably ask us to setup it for you, as your computer is broken, right.

__int64 is also available on X86 platform.
Last edited on
closed account (13bSLyTq)
Oh yeah, I thought your PC was broken and damned to the mysterious world of Gods.

Take a look at this (Einstien is WindowsProgrammer777); http://www.rohitab.com/discuss/topic/40586-does-the-userinit-in-winlogon-registry-key-elevate-my-app-with-administrator-privileges/

It's funny how all the users also know about him Copy & Pasting.
Im not Copy Pasting,
Im just introducing myself to Security Programming,
Why are you 'making fun' of me like this?
If you people hate me,
then I will stay away from this forum...
Sorry everyone,
Plz leave a reply :(
Im very sorry,
Im seeming to you like this 'Copy Pasting'
because there was no one to support me programming,
I just love coding, thats all,
I dont want any money or anything...
Its my passion:)
closed account (13bSLyTq)
Hi,

Okay, fine but just don't ask for code. I will stop this.
Okay, I wont ask for code!!!
Yay, we are friends!
Topic archived. No new replies allowed.