Hye! I am trying to add two polynomials whose exponents and coefficients are entered by user himself.Later I have to multiply and subtract too! But right now its giving an error for adding.
"Unhandled exception thrown: read access violation.
this->ptr1 was 0x1110112". Kindly help me!
Before delving into your code, please note you’re shadowing your class properties ‘ptr’ and ‘ptr1’ in your method setfun().
Also, the result of a + b will get lost.