Question: please please help me and use c++ here is the output i need i wan't given question just given the output only sorry i wasn't

please please help me and use c++

here is the output i need

i wan't given question just given the output only sorry i wasn't much help

Test 0 3: Constructors

Test 4-8: Binary Operators

Test 9-10 : Unary Operators

Test 11-12: Comparison and operator>>()

Test 13-14: Assignment operator, index operator, conversion operator, destructor

please please help me and use c++ here is the output ineed i wan't given question just given the output only sorry iwasn't much help Test 0 3: Constructors Test 4-8: Binary Operators Test9-10 : Unary Operators Test 11-12: Comparison and operator>>() Test 13-14: Assignment

here is my code so far.

hugeint.cpp

#include //isdigit()

#include //strlen

#include "HugeInt.h"

using std::endl;

using std::cout;

HugeInt::HugeInt(long value)

{

cout

number = new short[30];

for(int i = 0; i

number[i] = 0;

//Complete the code here to set number[i]

computeSize();

}

//Set the size of the number of an HugeInt object

void HugeInt::computeSize()

{

}

HugeInt::HugeInt(const char* string)

{

cout

number = new short[30];

for(int i = 0; i

number[i] = 0;

int length = strnlen(string, 30);

//Complete the code here to set number[i]

computeSize();

}

HugeInt::HugeInt(const HugeInt& copy)

{

cout

}

HugeInt::~HugeInt()

{

cout

}

HugeInt& HugeInt::operator=(const HugeInt& right)

{

cout

}

HugeInt HugeInt::operator+(const HugeInt& right)

{

cout

}

HugeInt HugeInt::operator-(const HugeInt& right)

{

cout

}

HugeInt HugeInt::operator*(const HugeInt& right)

{

cout

}

HugeInt HugeInt::operator/(const HugeInt& right)

{

cout

}

HugeInt HugeInt::operator%(const HugeInt& right)

{

cout

}

HugeInt& HugeInt::operator++()

{

cout

}

HugeInt HugeInt::operator++(int)

{

cout

}

short& HugeInt::operator[](int pos)

{

cout

}

HugeInt::operator long double()

{

cout

}

bool HugeInt::operator

cout

}

ostream& operator

{

cout

}

istream& operator>>(istream& in, HugeInt& n)

{

cout >(istream&, HugeInt& )"

//Converting a string to char* can be done with c_str() member function of string type

}

hugeint.h

#ifndef HUGEINT_H

#define HUGEINT_H

#include

using std::ostream;

using std::istream;

using std::string;

class HugeInt {

private:

short* number;

int size;

void computeSize();

public:

HugeInt(long = 0);

HugeInt(const char*);

HugeInt(const HugeInt&);

~HugeInt();

HugeInt& operator=(const HugeInt&);

HugeInt operator+(const HugeInt&);

HugeInt operator-(const HugeInt&);

HugeInt operator*(const HugeInt&);

HugeInt operator/(const HugeInt&);

HugeInt operator%(const HugeInt&);

HugeInt& operator++();

HugeInt operator++(int);

bool operator

short& operator[](int);

operator long double();

friend ostream& operator

friend istream& operator>>(istream&, HugeInt&);

};

#endif

main.cpp

#include #include "HugeInt.h" using namespace std; void displayTestCase(int); int main() { int count = 0; displayTestCase(count++); HugeInt n1(765321); cout > n7; cout > n7 : " BP@CS:~/CMSC2613/F2020/P6$ p6 Test @ HugeInt(long) called ni using long : operator>(istream&, Huge Int& ) Enter a string for a number: 12345678901234567890123 Huge Int(const char*) called operator=(const Huge Int&) called HugeInt(const Huge Int&) called HugeInt() called HugeInt() called n7 after cin >> n7 : operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!