Problem2193--Complex addtion

2193: Complex addtion

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Please overload operator >> for input and operator << for output, and reimplement the class complex to add complex numbers. You may need to overload the operator + .

Input

Given two positive complex numbers

Output

The calculation results.

Sample Input Copy

3 2
2 1

Sample Output Copy

c1 + c2 = 5 + 3 i

Source/Category

33