Q1: Should I stick parenthesis around the Complex numbers on output?
I believe there is an inconsistency in how p8.C adds according to the way
you have displayed it. The second calculation line on your output treats
the real and imaginary parts to be a unit, where the minus causes both
real and imaginary to be negative. The last calculation line output
calculates from left to right only.
--------------------------------------------------------------------------------
Q1: Should I stick parenthesis around the Complex numbers on output?
I believe there is an inconsistency in how p8.C adds according to the way
you have displayed it. The second calculation line on your output treats
the real and imaginary parts to be a unit, where the minus causes both
real and imaginary to be negative. The last calculation line output
calculates from left to right only.
A1: If you want to, fine.
Notice on page 21, of PA#8 top box, main() just displays "-" in the
3rd cout statement and then the value of the y object (Complex number).
This is why the output is as you see it.
--------------------------------------------------------------------------------