bigint.h
来自「无限大整数类 用链表实现无限大整数的运算。 在进行大整数运算时可以拿它当函」· C头文件 代码 · 共 25 行
H
25 行
struct IntNode
{
int Data;
IntNode *Prev, *Next;
};
class BigInteger
{
int sign;
IntNode *head, *end, *curNode;
void Reset();
int AbsCompare(const BigInteger &bi1, const BigInteger &bi2);
void RemoveZeroOfHead();
void AddNodeAtHead(int dat);
void AddNodeAtEnd(int dat);
public:
void GetNum();
void Print();
BigInteger operator + (const BigInteger &bi);
BigInteger & operator = (const BigInteger &bi);
BigInteger();
BigInteger(const BigInteger &bi);
~BigInteger();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?