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
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
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
Here, the task mentioned in the question is to create a class named 'largeIntegers' and implement the required functionalities in C++ language.
It has to be started by defining the class in the 'largeIntegers.h' file and then implement the methods in the 'largeIntegers.cpp' file.
Step by step
Solved in 5 steps with 1 images