AALanguage
The best language for those who have nothing to do
Loading...
Searching...
No Matches
Large.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <algorithm>
6#include <sstream>
7
9class large {
10public:
12 large();
18 large(std::string str);
24 large(long long value);
25 large& operator+=(const large& value);
26 large& operator-=(const large& value);
27 large& operator*=(const large& value);
28 large& operator/=(const large& value);
29 large& operator%=(const large& value);
30 large operator++(::int32_t d);
31 large operator--(::int32_t d);
35 bool operator== (large val);
36 bool operator!= (large val);
37 bool operator<= (large val);
38 bool operator>= (large val);
39 bool operator> (large val);
40 bool operator< (large val);
48 large operator/ (long long val);
57 std::string ToString();
58private:
59 enum Sign { Plus, Minus };
60
61 std::string num;
63
64 std::string GetNum();
65 large pow(large val);
66};