From f4778612e071ee5c1502ab736ed822b8b81b2678 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Sat, 2 May 2020 17:56:42 -0400 Subject: [PATCH] large_number: created assignment operator --- others/large_number.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/others/large_number.h b/others/large_number.h index 6d117d9dd..8a6afcaa4 100644 --- a/others/large_number.h +++ b/others/large_number.h @@ -239,6 +239,14 @@ public: return a; } + /** + * assignment operator + **/ + void operator=(const large_number &b) + { + _digits = b._digits; + } + /** * operator overload to increment **/