F
fighterman19
I want to ask about copy constructor.
is the line sum=huge1.add(huge2) will call the copy constructor?
int main()
{
HUGE_INT huge1(0),huge2(1), sum;
sum=huge1.add(huge2);
//are these two line also a copy constructor?
huge1.assign(huge2);
huge2.assign(sum);
return 0;
};
is the line sum=huge1.add(huge2) will call the copy constructor?
int main()
{
HUGE_INT huge1(0),huge2(1), sum;
sum=huge1.add(huge2);
//are these two line also a copy constructor?
huge1.assign(huge2);
huge2.assign(sum);
return 0;
};