M
M. Akkerman
Hi,
I've been working on this problem for a while now but I just can't
seem to find a good solution for it.
Here is the situation.
I have the following class
class TBigNumber {
private:
vector<char> number;
public:
void operator/=(TBigNumber &Divider);
}
The actual class is bigger (it can also do Add, Subtract and Multiply)
but that's not important rightnow.
vector<char> number is set with numeric char values, no need to check
wether it is or is not numeric because that's already been done while
creating the instance.
For simplification you could say I have this:
char numberone[128]; // filled with numeric characters
char numbertwo[128]; // filled with numeric characters
char result[128]; // filled with numeric characters
what I want todo is result = numberone/numbertwo;
Could anybody give me a few pointers on howto do this?
TIA,
Mike
I've been working on this problem for a while now but I just can't
seem to find a good solution for it.
Here is the situation.
I have the following class
class TBigNumber {
private:
vector<char> number;
public:
void operator/=(TBigNumber &Divider);
}
The actual class is bigger (it can also do Add, Subtract and Multiply)
but that's not important rightnow.
vector<char> number is set with numeric char values, no need to check
wether it is or is not numeric because that's already been done while
creating the instance.
For simplification you could say I have this:
char numberone[128]; // filled with numeric characters
char numbertwo[128]; // filled with numeric characters
char result[128]; // filled with numeric characters
what I want todo is result = numberone/numbertwo;
Could anybody give me a few pointers on howto do this?
TIA,
Mike