So I have to do a program overloading the operators >>, <<, +, –, *, and /. I am quite an amatuer at doing this and I was wondering whether someone could help me...I looked at previous threads on this and tried using it but I use putty and it doesn't really work in there. I need to use outFile and get the numbers from inFile if someone could please help me out it would be greatly appreciated

It needs to do this

A = a + bi

B = c + di

>> It extracts two part of complex number.

<< It inserts the complex number with (a) + (b) i format.

+ A+B = (a + c) + (b + d)i

- A - B = (a - c) + (b - d)i

* A* B = (ac - bd) + (bc + ad)i

/ A / B = (ac + bd)/(c2 + d2)+ (bc -ad)/(c2 + d2)i

Input Sample:

2.5 -2.2

1.0 1.0

Output Sample:

< *~ Complex numbers operations ~*>

A = (2.5) + (-2.2) i

B = (1.0) + (1.0) i

A + B is (3.5) + ( -1.2) i

A - B is .. . .

A * B is .. . .

A / B is .. . .

< end >