#include"stdio.h"
//编程求两个复数的和
struct complex//第一个参数代表实部 第二个参数代表虚部
{
double r;
double i;
};
struct complex add(struct complex x, struct complex y)
{
struct complex z;
z.r = x.r + y
#include"stdio.h"
//编程求两个复数的和
struct complex//第一个参数代表实部 第二个参数代表虚部
{
double r;
double i;
};
struct complex add(struct complex x, struct complex y)
{
struct complex z;
z.r = x.r + y