写了个密码排列组合有关的程序.要计算所有的可能,结果__int64都不够用了.
有没有比较全面的__int128实现方案:1.支持基本的运算.并支持和其它类型(如DWORD64 DWORD)等数据进行运算.2.支持该类型数据的格式化输出.如如何实现printf("%I128d",i)来输出这个数字.
有没有比较全面的__int128实现方案:1.支持基本的运算.并支持和其它类型(如DWORD64 DWORD)等数据进行运算.2.支持该类型数据的格式化输出.如如何实现printf("%I128d",i)来输出这个数字.
C++ class BigInt that enables the user to work with arbitrary precision integers.
{
byte data[128/8];
}再重载几个基本的运算符,应该可以实现的。
http://it.china-b.com/cxsj/vc/20090612/102463_1.html
http://www.cppblog.com/xuchaoyi99/archive/2005/12/04/1530.aspx
http://topic.csdn.net/t/20060815/10/4950189.html
struct _int128
{
int i1;
int i2;
int i3;
int i4;
}