#pragma once #include #include #include #include using namespace std; class BigInt { private: string s; bool mai_mic_sau_egal(string s,string ss); bool mai_mic(string s,string ss); bool mai_mare(string s, string ss); bool mai_mare_sau_egal(string s,string ss); string sx(string s,string ss); string dx(string s,string ss); string px(string s,string ss); string pow(string s,string ss); pair ddx(string s,string ss); public: BigInt(string n); ~BigInt()=default; bool operator<(BigInt ss); bool operator<=(BigInt ss); bool operator==(BigInt ss); bool operator>(BigInt ss); bool operator>=(BigInt ss); void operator=(string ss); void operator=(BigInt ss); string operator+(BigInt ss); string operator-(BigInt ss); string operator*(BigInt ss); string operator^(BigInt ss); pair operator/(BigInt ss); //returns a pair containing on first the quotient and on second the reminder of the division string sqrt(); };