http://www.geocities.com/vtunes20/hw16_5.txt
If you can notice from that, I created object c1 and c2 and initialized them, but how do I send c1.real, c1.imag, c2.real, c2.imag to member function complex::add() for addition. I'm totally lost.
Plus any criticisms you might have about the way I write my code is welcome.
EDIT:
Here is the finished working program: http://www.geocities.com/vtunes20/hw16_5Working.txt
If you can notice from that, I created object c1 and c2 and initialized them, but how do I send c1.real, c1.imag, c2.real, c2.imag to member function complex::add() for addition. I'm totally lost.
Plus any criticisms you might have about the way I write my code is welcome.
EDIT:
Here is the finished working program: http://www.geocities.com/vtunes20/hw16_5Working.txt