i want you to create a c++ program using vector to calculate the sum of 2 integers. Note…
Jump to turn (13)
- 1i want you to create a c++ program using vector to calculate the sum of 2 intege
- 2make sure that the vector store things in reverse, for exam an integer 321 would
- 3within the program, i want you to create a BigInt class to support numbers that
- 4class BigInt { public: BigInt(std::string s); // convert string to BigInt std::s
- 5create a tostring function to take in a vector of int values in single digit and
- 6why is it += '0' +it instead of just += it
- 7similarly to the function above, define the function below to the the oppositive
- 8use static cast
- 9when a function in a class has "const" in the back, what does that mean
- 10modift this to eliminate resize, since the vector array is reversed there is no
- 11void add(const BigInt& b) modify the above function so that it add some extra ze
- 12why is it b.digits.size instead of b.size
- 13this function fail to work sometimes when num size is = b.num.size()){ sum += ca
- User
i want you to create a c++ program using vector to calculate the sum of 2 integers. Note that integers can be very big so so use vectors to store each single number in the integer then utilize long addition to calculate the sum
- Assistant