Vector list changing after assigning to a class
I am creating instances of the polynomial class using vectors.
I create a vector supposedly containing 10 1’s and assign it to a polynomial instance of the polynomial class according to the code below:
Function inside a class that returns same class
I am trying to create a function that adds two polynomial coefficients together, basically i have a class polynomial10 and i am creating a function add to add these coefficients together to create a new instance of the class polynomial 10.
Unfortunately when I try to declare the function there comes an error.
Follows the code: