Digit and Integer — WIP #1

This is the shell of Digit and Integer classes. Most of the methods are already implements. However, the most difficult ones remains to be done (see Not Implemented Yet (NIY) tags). At the moment, these features are functional:

Digit:
- Constructors
- Output
- Addition
- Subtraction
- Multiplication (may be modified because of overflow management)

Integer:
- Constructors
- Output
- Addition
Minimization

Repositioned braces to increase code density. More readable, less
scrollable.

`sed` ftw.
Digit & Integer — WIP #2

More features! Yay!

Digit:
- Short operators (++, —, pre&post-fixed)

Integer:
- Relational operators
- Subtraction

More to come soon!
Digit & Integer — WIP #3

Digit:
- Nothing new, just deleted a debug output.

Integer:
- Naïve multiplication (Very slow over 6-digit operands)

I am going to branch off to experiment some faster multiplication algorithms.
Implemented

Naive multiplication algorithm is now up.
I also corrected a few errors I spotted down when implementing the multiplication.
Merge fixes

Fixed some merging problems. Plus redefined Integer operators overload signature to fit C++ standards, which solve a parenthesis problem.
Constructors, methods, addition

Integer different constructors, methods and addition overload now work with iterators.
Addition and overflows fixed, subtraction, multiplication

Fixed a bug where addition would let unexpected overflows in some digits, causing an erratic behaviour on further calculations. Created the clearOverflows private method to get rid of any problem of that kind.
Subtraction and multiplication now work with iterators as well.

I also renamed the Integer class into Natural, since it is more relevant to its unsigned nature.
Branch is ready for merging.

Fixed a bad memory access bug, removed all debug messages and made the main.cpp file look more like a teaser or something.