Hi, I have a class Polynomial defined as the following...
Class polynomial{
public:
Polynomial(int, int, int);
}
I'm not sure where i'm trying to go with this because I need to add two polynomials together for example
Poly1: 3x^3 + 2x^2 + x
Poly2: 4x^3 + x^2 + 2x
I am wondering how do I go about just reading the values in? That is where I am stuck...Will that polynomial constructor with three arguments work? or do I need to have 6 arguments??? If anyone can help me just understand how this process should work that would be perfect. Thanks
Class polynomial{
public:
Polynomial(int, int, int);
}
I'm not sure where i'm trying to go with this because I need to add two polynomials together for example
Poly1: 3x^3 + 2x^2 + x
Poly2: 4x^3 + x^2 + 2x
I am wondering how do I go about just reading the values in? That is where I am stuck...Will that polynomial constructor with three arguments work? or do I need to have 6 arguments??? If anyone can help me just understand how this process should work that would be perfect. Thanks