llongint.h
来自「一个大整数运算类」· C头文件 代码 · 共 36 行
H
36 行
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 operator -(LLongInt &another);
LLongInt operator *(LLongInt &another);
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); //模幂乘算法
private:
unsigned int *pLLI;
int lliLength; //int 的个数
int sign;
private:
int Trim( );
LLongInt Divide(LLongInt &divisor, LLongInt ÷nd, LLongInt &remainder);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?