oh i get it now... hah i though you were actually having to implement a huge int whew... you just need to implement the framework. i see...

then the itoa() will convert the long to a char array

look setValue(long l) could be implemented as follows

Code:

#include <stdlib.h>
#include <string.h>
void HugeInteger::setValue(long l)
{
char p[HUGE_INTEGER_MAX_DIGITS];
memset(p,'\0',HUGE_INTEGER_MAX_DIGITS);
itoa(l,p,10);
int nzeros = HUGE_INTEGER_MAX_DIGITS - strlen(p);
memset(digits,'0',HUGE_INTEGER_MAX_DIGITS);
for(int i = nzeros;i < HUGE_INTEGER_MAX_DIGITS ;i++)
{
digits[i] = p[i-nzeros];
}
}

most of the conversions can work this way.

i don't have aim.