I am making a program that will allow the user to add two 50+ digit numbers together using arrays and a class named LargeInt. Upon inputting the number, the program will put that number in an array and output it to a string. I am trying to convert the char that is in the program to a string and things will not translate properly. I am also not sure why my program puts "-" in between every number after the addition. Any suggestions?
LargeInt.h
1 2 3 4 5 6 7 8 9 10 11 12 13
#pragma once
class LargeInt
{
public:
LargeInt() {};
void ADDITION();
private:
int Number1[255], Number2[255] , ADD[255];
char S1[255], S2[255];
int L1, L2;
};
#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <string>
#include "LargeInt.h""
usingnamespace std;
int main()
{
cout << endl;
cout << "Enter a number to calculate the addtion of two large numbers" << endl;
LargeInt digit;
digit.ADDITION();
system("pause");
return 0;
}