-->
当前位置:首页 > 题库

PROGRAMMING:Complex addition

Luz5年前 (2021-05-10)题库403
Title: a complex class, operator overload +, to achieve the addition of complex and complex. Enter a set of complex numbers, one for each line, until the end of 0. Output the result of the complex number.
It is suggested that the input and output of complex numbers conform to the mathematical writing standard
Input examples
3+2i
2+3i
0
Output example
5+5i






answer:If there is no answer, please comment