423,099 Members | 2,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,099 IT Pros & Developers. It's quick & easy.

How to store numbers greater than 64bit in c++

P: 1
Please help,I'm kinda new to c++ programming
1 Week Ago #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,150
This is too difficult for a beginner.

The conceptual answer is that you design for a large data item. Like maybe a string where each character is a digit of your number. Or perhaps a struct (class) whose data members are the number. Or maybe just a memory allocation where each bit is part of your number.

Then you write code to add/subtract/divide/multiply the data in your design. Then you overload the + - / * operators.

Lastly, all this work has already been done so you would just purchase large number code products and use those.
1 Week Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.