ignore

closed account (4E0oLyTq)
nvm.
Last edited on
closed account (48T7M4Gy)
What is weird? What output did you get that's weird and what output did you expect instead?
closed account (48T7M4Gy)
 ***********Testing the Polynomial class***************

 Q =  + 1 x^ 2 + 2 x^ 1 + 2

 C =  + 3 x^ 3 + 4 x^ 2 + 2 x^ 1 + 2

  S =  + 1 x^ 2 + 3 x^ 1 + 3 

  R = 


 The Polynomial value Q when x = 0 is : 

 0

********** Testing sum operator*************

 Q + C :  + 0 x^ 4


 C + R : 

 R + S:  + 0 x^ 4
***********Testing difference operator************

 Q - C : 


 C - R : 

 R - S: 
****************Testing product operator*********************

 Q * C :  + 0 x^ 4


 C * R : 0

 R * S:  + 0 x^ 4

 
Exit code: 0 (normal program termination)


That's the output you currently get. So what's wrong with that? I'd suggest each problem is taken from the top, one at a time.
Last edited on
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/general/195014/
Topic archived. No new replies allowed.