复数求和 题目正文 样例 代码 总结 题目正文 从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。 样例 3 3 4 5 2 1 3 7 1 2 3 4 2 5 1 8 6 4 7 9 3 7 9+9i 23+39i 代码 代码如下(示例): #include<stdlib.h> #include<iostream> #include<stdio.h> using namespace std; typedef struct linklist{ int a,b; struct linklist *next; }list; list * createlist(int n