-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBigInt.h
37 lines (33 loc) · 892 Bytes
/
BigInt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef BIG_INT_H
#define BIG_INT_H
#include <vector>
#include <string>
#include <iostream>
using namespace std;
class BigInt {
private:
vector<char> chAr;
public:
BigInt();
BigInt(string);
BigInt(int);
BigInt(const BigInt&);
~BigInt();
vector<char> getChAr();
BigInt operator+(BigInt) const;
BigInt operator+(int);
BigInt operator++(int);
BigInt operator-(int);
BigInt operator-(BigInt) const;
BigInt operator=(BigInt);
BigInt operator=(int);
bool operator==(int);
bool operator==(const BigInt&) const;
bool operator<(int);
bool operator<(const BigInt&) const;
bool operator<=(int);
bool operator<=(const BigInt&) const;
friend std::ostream & operator<<(std::ostream &os,BigInt);
void print();
};
#endif