Note: this was an interview question and currently it can not be used in real use
To design a class that can store a large number of numbers, each number can have 100 digits. This new class is a dataset such as int.
Different types of constructors, surcharges and other tasks that you will write.
How it can be extended, floating point number
How can it be given to others so that they can reuse the same component with its additional functionality.
My answer includes 2 approach 1. Intex to store each digit 10 point 2. 2. Use the string to store the number and work on individual numbers.
What will be the best way?
The best approach is that they are currently trying, and testing the C ++ shell. As for Beginnam Library Use.
Comments
Post a Comment