I have:
void hughint::operator *=(hughint y)
{
int i,t1,t2,prod,remainder;
int carry=0;
for(i=num.length()-1;i>=0;i--)
{
t1=(int)get(i)-(int)('0');
cout<<"t1: "<<t1<<endl;
t2=(int)y.get(i)-(int)('0');
cout<<"t2: "<<t2<<endl;
if(carry>0)
{
prod=(t1*t2)+carry;
remainder%=10;
carry=remainder/10;
}
}
}
I'm using 123*100 and the answer I keep getting is 123. Help please.