⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 very_long_int.h

📁 这是我编写的一个用于处理大数的very_long_int 类!
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -