资 源 简 介
2 classes , basic_large_int(unsigned) and large_int(signed) are implemented in the library.
Just include "large_int.h" to use them.
To compile it , modify the "Makefile".
The file application.cpp is the sample to use the library.
Basic_large_int is considered as "unsigned" large_int .
Operators(+,-,*,/,+=,-=,*=,/=,>,<,==,!=,>=,<=,<<,>>) are reloaded.
Operators(%,%=) are still experimental.
The %operator of signed large-int is defined as the absolute value of Mod.And sign is defined the same as multiplication.
The feature "large ary" is still experimental . It can make large-int faster.Use it at your own risk.
If you find bugs , please contact Lynx
Thanks Icyblade who tested it and reported bugs to me.
大数的C++库。做了两个类:basic_large_int 和 large_int。前者是无符号整数。
直接#include "large_int.h",并和large_int.o一起编译即可