mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
large_number: created assignment operator
This commit is contained in:
parent
1cb1641abc
commit
f4778612e0
@ -239,6 +239,14 @@ public:
|
|||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* assignment operator
|
||||||
|
**/
|
||||||
|
void operator=(const large_number &b)
|
||||||
|
{
|
||||||
|
_digits = b._digits;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* operator overload to increment
|
* operator overload to increment
|
||||||
**/
|
**/
|
||||||
|
Loading…
Reference in New Issue
Block a user