From 0916e5446434acd1a3a8384a3e9b1d935f654140 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 18 Nov 2017 15:39:32 +0100 Subject: Added multiplication of two numbers We are using an easy to implemented but extremely slow algorithm to compute the multiplication of two numbers of size n. Signed-off-by: Olivier Gayot --- number.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'number.h') diff --git a/number.h b/number.h index c905287..189011d 100644 --- a/number.h +++ b/number.h @@ -32,6 +32,14 @@ public: */ number operator+(const number &n) const; + /** + * \brief Return the result of the multiplication of a number and this + * number. + * + * \param n The number to multiply with this number. + */ + number operator*(const number &) const; + /** * \brief Tells whether the number passed as parameter is strictly less * than this number. -- cgit v1.2.3