#include "num.h"
Num::Num(int value, int modulo) : value(value), modulo(modulo)
{
}
Num& Num::operator=(const Num& other)
{
this->value;
return *this;
}
Num Num::operator+(const Num& other)
{
this->value;
return *this;
}
Num Num::operator-(const Num& other)
{
this->value;
return *this;
}
Num Num::operator*(const Num& other)
{
this->value;
return *this;
}
Num Num::operator+(int num)
{
this->value;
return *this;
}
Num Num::operator-(int num)
{
this->value;
return *this;
}
Num Num::operator*(int num)
{
this->value;
return *this;
}
Num& Num::operator+=(const Num& other)
{
this->value += modulo;
return *this;
}
Num& Num::operator-=(const Num& other)
{
this->value -= modulo;
return *this;
}
Num& Num::operator*=(const Num& other)
{
this->value = value * modulo;
return *this;
}
Num& Num::operator+=(int num)
{
this->value = value + modulo;
return *this;
}
Num& Num::operator-=(int num)
{
this->value -= modulo;
return *this;
}
Num& Num::operator*=(int num)
{
this->value = value * modulo;
return *this;
}