I have seen some solutions to this problem in Bartleby's library that make no sense to me. I am learning C++, more specifically working with dynamic integers and have become confused with what has been provided previously by others. Using dynamic integers, can I get help with creating a class named 'largeIntegers' so that an object of this class can store an integer of any number of digits. If I could get help with setting up operations to add, subtract, multiply, and compare integers stored in two objects. Also, if someone could explain and help myself create constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. There are three files I am working with: main.cpp, largeIntegers.h, and largeIntegers.cpp largeIntegers.cpp #include using namespace std; largeIntegers.h //Specification file largeIntegers.h #ifndef H_largeIntegers #define H_largeIntegers #include
I have seen some solutions to this problem in Bartleby's library that make no sense to me. I am learning C++, more specifically working with dynamic integers and have become confused with what has been provided previously by others.
Using dynamic integers, can I get help with creating a class named 'largeIntegers' so that an object of this class can store an integer of any number of digits. If I could get help with setting up operations to add, subtract, multiply, and compare integers stored in two objects. Also, if someone could explain and help myself create constructors to properly initialize objects and functions to set, retrieve, and print the values of objects.
There are three files I am working with:
main.cpp, largeIntegers.h, and largeIntegers.cpp
largeIntegers.cpp
In this question we have to write a C++ code for the given problem description for dynamic integers operations.
Let's code and hope this helps if you have any queries please utilise threaded question feature.
I tried best to understand the issue and resolve it. If still you think solution is not accurate then please ask a follow up question where is the solution wrong. I will try to fix it.
Step by step
Solved in 3 steps with 1 images