How to add very large numbers in C ++?
consider the "bignum" library, for example: http://gmplib.org/ or http://ttmath.slimaczek.pl/ttmath . take a look at the simple bignum class: http://www.circlemud.org/~jelson/560/
Make Google on "Bigint C ++". This will provide you with a list of arithmetic precision libraries of entire referees.
You can find a large decimal implementation at http://speleotrove.com/decimal/
How big is "very big"? The recorded long int can reach 2,147,483,647, and the unsigned long int can reach 4,294,967,295.
GMP has a GMPXX C ++ wrapper that is enjoyable. GMP supports both integers and floating point numbers and L GPLs.
I used it. This is normal, but watch for the creation of a large number of time series. (Potential effectiveness.)
You can use a library like LiDIA for a class with a large number.