Your statements
coeficiente_*n.coeficiente_;
grado_*n.grado_;
Have no effect. They would be the same as writing
5;
24;
"123";
Perhapts you wanted to do an assignement like
coeficiente_ *= n.coeficiente_
grado_ *= n.grado_;
?
0
solved Overloaded operator – warning: statement has no effect [-Wunused-value]