CS246 Homework 3: pointers and arrays

 

Due: Tuesday, Feb 23, 2016 - 11:59 pm

What to hand in:

Big int [100pts]

In this program we will simulate very large integers with arrays in the following way: digits are stored into the array starting with the least significant. That is, given an integer 123, it is stored with 3 at index 0, 2 and index 1 and 1 at index 2.

Write the following functions:

 

Copy the framework code /rd/cs246s2016/shared/hw3/bigint_frame.cpp and use it as a starting point. A main complete with test cases as well as a print function have been provided for you. Additional requirements: