C++ Dynamic Arrays Implement the code below with these tasks 1. Overload *, / op
ID: 3888509 • Letter: C
Question
C++ Dynamic Arrays
Implement the code below with these tasks
1. Overload *, / operators to multiply and divide bigPosInt numbers. ( + and - operators have been implemented in the code below)
2. overload >> and << for easy io.
3. implement appropriate constructors.
4. main.cpp shall support the following statements:
bigPosInt num1(“1234567890123456789012345”); bigPosInt num2(“11223344556677889900112233"); ; cin >> num1;
cout << “num1: ” << num1 << endl; cout << “num2: ” << num2 << endl;
numTest = num1 * num2; cout << “numTest: ” << numTest << endl;
numTest = num1 / num2; cout << “numTest: ” << numTest << endl;
C++ Source code
#include <iostream>
Explanation / Answer
#include <iostream>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.