Контрольная работа: Фундаментальная группа. Конечные поля
{ public:
int *coef;
int deg;
Polynom();
Polynom(char *);
Polynom(int);
Polynom(Polynom *);
~Polynom();
Polynom operator =(string);
Polynom *operator *(Polynom *);
Polynom operator /(Polynom);
Polynom *operator %(Polynom *);
int operator [](int);
void operator ++();
bool operator <(Polynom *);
bool operator ==(Polynom *);
Polynom *norm();
int coef_count();
char *print();
};
Polynom :: Polynom()
{ coef = new int[1];
coef[0] = 0;
deg = 0;
}
Polynom *Polynom :: norm()
{ int f = 0;
for(int i = 0; i <= deg; i++)
if( coef[i] != 0 )