#include <stdio.h>
#include <math.h>
#define Pi 3.1415926
struct cplx
{
double r;
double i;
}; //定义复数组成
/*
函数功能: 交换复数
入口参数: 复数z1
返回值:
*/
void CplxAss(struct cplx *z1,struct cplx *z2)
{
z1->r = z2->r;
z1->i = z2->i;
}
/*
函数功能: 计算两个复数的加法
入口参数: 复数z1地址,复数z2地址,复数z1与z2的和存...

