very_long_int.h

来自「这是我编写的一个用于处理大数的very_long_int 类!」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef _VERY_LONG_INT
#define _VERY_LONG_INT
#endif

#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;

class very_long_int
{
	friend istream& operator>>(istream& instream,very_long_int& very_long);
	friend ostream& operator<<(ostream& outstream,very_long_int very_long);
public:
	very_long_int();
	very_long_int operator+(const very_long_int& other_very_long);
	very_long_int operator*(const very_long_int& other_very_long);

	char least(unsigned i) const;
	very_long_int Mul(int n);
	very_long_int Factorial(unsigned n);
	vector<char>digits;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?