[Solved] generic number in c++

Possible through slightly different means. See example: #include <iostream> class X { public: X(int val) : value(val) { } // this is the important part template<class TYPE> X & operator+(TYPE input) { value += input; // just demonstrating with a simple int // a real bignum will be significantly more complex // and you may … Read more