Answer to Question #27271 in C++ for Marshal.00

Question #27271
Hi every one.
I'm Trying to Add-Sub-Mul-Div very big numbers in my calculator,
I've made my variables 'char' .
I'm about to have numbers between 100 to 1000 digits.
I've written some code .
it's not workign properly.
and the difficult part is that i should make all of this in a class.
here is just my Addition part :

let me know where i have done my code wrong ... thanks.



#include <iostream>
#include <cstring>
#include <cstdlib>

using namespace std;

class BigInteger

private:
char Num1[1000];
char Num2[1000];
char Num3[1001];
public:
void SetNumber(char A[], char B[]);
char * Add();
BigInteger();
};

BigInteger :: BigInteger()
{
for(int i=0; i<1001; i++)
Num3[i] = 0;
}

void BigInteger :: SetNumber(char A[], char B[])
{
for(unsigned i=0; i<strlen(A); i++)
Num1[i] = A[i];
for(unsigned i=0; i<strlen(B); i+
1
Expert's answer
2013-04-17T11:17:28-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-27271.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS