subject

Modify the bigint class by

adding the > operation to determine whether one bigint object is bigger than another.

adding the subtraction operation - to class bigint: int1 - int2 which should return 0 if int1 is less than int2.

(bonus) adding the multiplication operation * to class bigint.

the bigint.

#include
#include
using namespace std;

#include "bigint. h"

// definition of read()
void bigint: : read(istream & in)
{
static bool instruct = true;
if (instruct)
{
cout < < "enter " < < digits_per_block < < "-digit blocks, separated by "
"spaces.\nenter a negative integer in last block to signal "
"the end of input.\n\n";
instruct = false;
}
short int block;
const short int max_block = (short) pow(10.0, digits_per_block) - 1;
for (; ; )
{
in > > block;
if (block < 0) return;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
Modify the bigint class by

adding the > operation to determine whether one bigint ob...
Questions
Questions on the website: 13722363