60 412
Assignments Done
98,2%
Successfully Done
In April 2018

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+
Expert's answer

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions