From 589f8e2558d008c63892f2345b233e28d889620b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 8 Sep 2017 20:06:38 +0200 Subject: Added the addition of two numbers We're using the grade school addition method to compute the sum of two numbers of size n. Signed-off-by: Olivier Gayot --- number.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'number.h') diff --git a/number.h b/number.h index c508a81..ca5075e 100644 --- a/number.h +++ b/number.h @@ -8,6 +8,13 @@ class number { public: number() = default; + /** + * \brief Return the result of the addition of a number and this number. + * + * \param n The number to add to this number. + */ + number operator+(const number &n) const; + /** * \brief Tells whether the number passed as parameter is strictly less * than this number. -- cgit v1.2.3