complex number arithmetic
I'm trying to make class "Complex" with operator overload so I can perform c1+c2 etc.
I don't know how to deal with following problem:
I ask user to enter complex number from keyboard and he(she)
type: 2+i3. I can ask to enter Real and Imaginary part separately, but how can I achive this.
I was thinking to enter information from keyboard to string and then parse string like array of character seeking '+' or '-'.
Is it possible to achive this in some other simple way??
Thanks in advance!