llongint.h
来自「应用编码与计算机密码学>程序 如果好的话请发言」· C头文件 代码 · 共 38 行
H
38 行
class LLongInt
{
public:
LLongInt();
LLongInt(__int64 i64);
LLongInt(char *strDec);
LLongInt(unsigned int *strHex, int intCount, int sign);
LLongInt(LLongInt &another);
~LLongInt( );
LLongInt operator -(LLongInt &another);
LLongInt operator *(LLongInt &another);
LLongInt Abs(LLongInt &lli);
void operator =(LLongInt &another);
int operator ==(LLongInt &another);
int operator >(LLongInt &another);
int operator <(LLongInt &another);
int operator >=(LLongInt &another);
int operator <=(LLongInt &another);
int operator !=(LLongInt &another);
char* LLongInt2A(char *buff, int radix, char *radixSymbols=NULL);
LLongInt ExpMod(LLongInt e, LLongInt n); //模幂乘算法
int IsPrime();
int ModRevert(LLongInt &m, LLongInt &result);
LLongInt Divide(LLongInt &divisor, LLongInt ÷nd, LLongInt &remainder);
unsigned int* GetBuff();
int GetBuffLength();
int GetSign();
private:
unsigned int *pLLI;
int lliLength; //int 的个数
int sign;
private:
int Trim( );
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?