ydaimaBigNum
所属分类:数学计算
开发工具:Visual C++
文件大小:12KB
下载次数:7
上传日期:2010-02-10 00:02:31
上 传 者:
qiufeng0001
说明: 件介绍: VC++数论计算的无符号大整数类及范例
VC++数论计算的无符号大整数类及范例,利用空闲时间编写了一个用于数论计算的无符号大整数类:
//乘2运算,即
// a = a * 2^dwTimes 相当于左移一位二进制,低位补0
CUSuperInt& Double(DWORD dwTimes = 1)
//除2运算 相当于右移一位二进制,高位边补0,低位舍弃
CUSuperInt& Half(DWORD dwTimes = 1)
public:
//以下定义的是常用的操作
//重新分配内存空间,用于增加数据长度,n为新长度
void Expand(DWORD n)
//压缩数据,以节省空间。指去掉高位多余的0。
void Compress()
//转换在十六进制数字符串
void ToHexStr(CString& s)
CString ToHexStr()
//转换成十进制数字符串
void ToDecStr(CString& s)
CString ToDecStr()
(VC++数论计算的无符号大整数类及范例
)
文件列表:
ydaima.com\BigNum\Big.asm (573, 2003-08-06)
ydaima.com\BigNum\big.obj (281, 2003-08-06)
ydaima.com\BigNum\BigNum.cpp (892, 2009-12-24)
ydaima.com\BigNum\BigNum.dsp (3935, 2003-08-10)
ydaima.com\BigNum\BigNum.dsw (535, 2003-07-12)
ydaima.com\BigNum\StdAfx.cpp (331, 2009-12-24)
ydaima.com\BigNum\StdAfx.h (772, 2003-07-12)
ydaima.com\BigNum\USuperInt.cpp (18630, 2009-12-24)
ydaima.com\BigNum\USuperInt.h (3486, 2009-12-24)
ydaima.com\BigNum (0, 2009-12-24)
ydaima.com (0, 2009-12-24)
========================================================================
WIN32 APPLICATION : T
========================================================================
AppWizard has created this BigNum application for you.
This file contains a summary of what you will find in each of the files that
make up your BigNum application.
BigNum.cpp
This is the main application source file.
T.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named BigNum.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: